Skip to content

Commit

Permalink
util/log: log tenant and instance ID on the OPS channel.
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
knz committed Jan 15, 2021
1 parent b483a26 commit 3457bf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/util/log/clog.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ func SetTenantIDs(tenantID string, sqlInstanceID int32) {
// new log files, even on the first log file. This ensures that grep
// will always find it.
ctx := logtags.AddTag(context.Background(), "config", nil)
logfDepth(ctx, 1, severity.INFO, channel.DEV, "tenantID: %s", tenantID) // TODO(knz): Use OPS here.
logfDepth(ctx, 1, severity.INFO, channel.DEV, "instanceID: %d", sqlInstanceID) // TODO(knz): Use OPS here.
logfDepth(ctx, 1, severity.INFO, channel.OPS, "tenantID: %s", tenantID)
logfDepth(ctx, 1, severity.INFO, channel.OPS, "instanceID: %d", sqlInstanceID)

// Perform the change proper.
logging.idMu.Lock()
Expand Down

0 comments on commit 3457bf7

Please sign in to comment.