mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-13 12:27:30 -06:00
[chore] Update more log calls to include context (#1517)
In #1476 we updated log.WithFields() but we forgot about log.WithField(). Also updates a few explicit log.Entry{} creations.
This commit is contained in:
parent
d39280ec33
commit
b4d18887d3
9 changed files with 19 additions and 12 deletions
|
|
@ -69,7 +69,8 @@ func (f *federatingDB) NewID(ctx context.Context, t vocab.Type) (idURL *url.URL,
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
l := log.WithField("newID", i)
|
||||
l := log.WithContext(ctx).
|
||||
WithField("newID", i)
|
||||
l.Debug("entering NewID")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue