forked from TrueCloudLab/frostfs-node
[#277] getsvc: Refactor errors
Move errors to separate files. Use zap.Error for error logging. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
45438e7b06
commit
22d47376a6
10 changed files with 132 additions and 64 deletions
|
@ -107,7 +107,7 @@ func (exec *request) analyzeStatus(ctx context.Context, execCnr bool) {
|
|||
exec.log.Debug(logs.GetRequestedRangeIsOutOfObjectBounds)
|
||||
default:
|
||||
exec.log.Debug(logs.OperationFinishedWithError,
|
||||
zap.String("error", exec.err.Error()),
|
||||
zap.Error(exec.err),
|
||||
)
|
||||
|
||||
if execCnr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue