Skip to content

Commit 98f9478

Browse files
authored
CBG-4501 define DatabaseLogCtx earlier (#7340)
1 parent d102ae2 commit 98f9478

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rest/server_context.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,9 @@ func (sc *ServerContext) _getOrAddDatabaseFromConfig(ctx context.Context, config
584584
dbName = spec.BucketName
585585
}
586586

587+
// we do not have per database logging parameters, but it is still useful to have the database name in the log context. This must be set again after dbcOptionsFromConfig is called.
588+
ctx = base.DatabaseLogCtx(ctx, dbName, nil)
589+
587590
defer func() {
588591
if returnedError == nil {
589592
return

0 commit comments

Comments
 (0)