3
0

Alter actioslog's caller-skip for logger

This commit is contained in:
Denis Arh
2020-09-30 15:06:00 +02:00
parent 74b15f18b1
commit c72192ab72

View File

@@ -98,7 +98,7 @@ func (svc service) log(a *Action) {
zap.Any("meta", a.Meta),
}
svc.tee.With(zlf...).Debug(a.Description)
svc.tee.With(zlf...).WithOptions(zap.AddCallerSkip(3)).Debug(a.Description)
}
func (svc service) Find(ctx context.Context, flt Filter) (ActionSet, Filter, error) {