Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2023-09-14 10:01:23 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-09-15 13:37:43 +0300
commit214d0ff9641c85d71de337f1f2f58d5c6c2dce7b (patch)
treedb1d3f619af3849029fe44f8ec259947b9f06bd5 /STYLE.md
parent2a006c4ee8b47887ddc1274dab9f645caf679c41 (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.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/STYLE.md b/STYLE.md
index 594a65728..d12142c8b 100644
--- a/STYLE.md
+++ b/STYLE.md
@@ -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")
}