Skip to content

Commit

Permalink
CBG-4501 define DatabaseLogCtx earlier (#7340)
Browse files Browse the repository at this point in the history
  • Loading branch information
torcolvin authored Jan 31, 2025
1 parent d102ae2 commit 98f9478
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rest/server_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,9 @@ func (sc *ServerContext) _getOrAddDatabaseFromConfig(ctx context.Context, config
dbName = spec.BucketName
}

// 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.
ctx = base.DatabaseLogCtx(ctx, dbName, nil)

defer func() {
if returnedError == nil {
return
Expand Down

0 comments on commit 98f9478

Please sign in to comment.