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 <andreas.martensson@svt.se>
This commit is contained in:
Andreas Mårtensson 2025-11-21 10:15:34 +01:00 committed by GitHub
parent 316828cc73
commit a487c4ef50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,7 +157,7 @@ func (impl JobHookImpl) Restore(
config := getRestoreWalConfig() config := getRestoreWalConfig()
contextLogger.Info("sending restore response", "config", config, "env", env) contextLogger.Info("sending restore response", "config", config)
return &restore.RestoreResponse{ return &restore.RestoreResponse{
RestoreConfig: config, RestoreConfig: config,
Envs: nil, Envs: nil,