Skip to content

Commit a487c4e

Browse files
authored
fix: don't log full environment variables at default log level (#589)
Logging the full environment of the plugin container can potentially result in an unnecessarily long log line, but perhaps more importantly the credentials are visible as well. Signed-off-by: Andreas Mårtensson <[email protected]>
1 parent 316828c commit a487c4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cnpgi/restore/restore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func (impl JobHookImpl) Restore(
157157

158158
config := getRestoreWalConfig()
159159

160-
contextLogger.Info("sending restore response", "config", config, "env", env)
160+
contextLogger.Info("sending restore response", "config", config)
161161
return &restore.RestoreResponse{
162162
RestoreConfig: config,
163163
Envs: nil,

0 commit comments

Comments
 (0)