diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-09-14 10:01:23 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-09-15 13:37:43 +0300 |
commit | 214d0ff9641c85d71de337f1f2f58d5c6c2dce7b (patch) | |
tree | db1d3f619af3849029fe44f8ec259947b9f06bd5 /STYLE.md | |
parent | 2a006c4ee8b47887ddc1274dab9f645caf679c41 (diff) |
log: Encapsulate our use of the `ctxlogrus` package
The `ctxlogrus` package is about to go away. Let's encapsulate it so
that the transition will become easier for us at a later point.
Diffstat (limited to 'STYLE.md')
-rw-r--r-- | STYLE.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -239,7 +239,7 @@ package transaction type Manager struct {} func (m Manager) StartTransaction(ctx context.Context) { - ctxlogrus.Extract(ctx).WithFields(logrus.Fields{ + log.FromContext(ctx).WithFields(logrus.Fields{ "component": "transaction.Manager", }).Debug("StartTransaction") } |