mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-03-12 23:18:36 +00:00
cli: use context-bound writer to log message
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
68d7e8e01c
commit
e9f496a19f
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ func uploadBlocksAndIndexFiles(ctx *cli.Context, p poolWrapper, rpc *rpcclient.C
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to upload index file: %w", err)
|
return fmt.Errorf("failed to upload index file: %w", err)
|
||||||
}
|
}
|
||||||
fmt.Println("Successfully uploaded index file ", indexFileStart/indexFileSize)
|
fmt.Fprintln(ctx.App.Writer, "Successfully uploaded index file ", indexFileStart/indexFileSize)
|
||||||
}
|
}
|
||||||
clear(buf)
|
clear(buf)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue