forked from TrueCloudLab/frostfs-s3-gw
[#606] Support log tagging
Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
This commit is contained in:
parent
ffac62e8b4
commit
e7f620f137
40 changed files with 850 additions and 497 deletions
|
@ -311,7 +311,7 @@ func LogSuccessResponse(l *zap.Logger) Func {
|
|||
}
|
||||
|
||||
ctx := r.Context()
|
||||
reqLogger := reqLogOrDefault(ctx, l)
|
||||
reqLogger := reqLogOrDefault(ctx, l).With(logs.TagField(logs.TagDatapath))
|
||||
reqInfo := GetReqInfo(ctx)
|
||||
|
||||
fields := make([]zap.Field, 0, 6)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue