Skip to content

Commit 5ea63ea

Browse files
authored
Fix correlation id format in logs (#1226)
1 parent 4f01892 commit 5ea63ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/watcher/credentials/credential_watcher_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func (cws *CredentialWatcherService) checkForUpdates(ctx context.Context, ch cha
166166
newCtx := context.WithValue(
167167
ctx,
168168
logger.CorrelationIDContextKey,
169-
slog.Any(logger.CorrelationIDKey, logger.GenerateCorrelationID()),
169+
logger.GenerateCorrelationID(),
170170
)
171171

172172
cws.watcherMutex.Lock()

internal/watcher/file/file_watcher_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func (fws *FileWatcherService) checkForUpdates(ctx context.Context, ch chan<- Fi
203203
newCtx := context.WithValue(
204204
ctx,
205205
logger.CorrelationIDContextKey,
206-
slog.Any(logger.CorrelationIDKey, logger.GenerateCorrelationID()),
206+
logger.GenerateCorrelationID(),
207207
)
208208

209209
slog.DebugContext(newCtx, "File watcher detected a file change")

0 commit comments

Comments
 (0)