forked from TrueCloudLab/frostfs-node
[#1437] node: Use ctx for logging
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
c16dae8b4d
commit
6db46257c0
157 changed files with 764 additions and 713 deletions
|
@ -33,13 +33,13 @@ func (s *Service) Delete(ctx context.Context, prm Prm) error {
|
|||
}
|
||||
|
||||
func (exec *execCtx) execute(ctx context.Context) error {
|
||||
exec.log.Debug(logs.ServingRequest)
|
||||
exec.log.Debug(ctx, logs.ServingRequest)
|
||||
|
||||
if err := exec.executeLocal(ctx); err != nil {
|
||||
exec.log.Debug(logs.OperationFinishedWithError, zap.String("error", err.Error()))
|
||||
exec.log.Debug(ctx, logs.OperationFinishedWithError, zap.String("error", err.Error()))
|
||||
return err
|
||||
}
|
||||
|
||||
exec.log.Debug(logs.OperationFinishedSuccessfully)
|
||||
exec.log.Debug(ctx, logs.OperationFinishedSuccessfully)
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue