Skip to content

Commit

Permalink
fix: 🔒 don't output environment, dump log buffer after integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch committed Apr 20, 2022
1 parent 23414c8 commit d0a8f58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/environment/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func Load() {

addSnykCliPathToEnv()

log.Debug().Interface("environment", os.Environ()).Msg("Config loaded.")
//log.Debug().Interface("environment", os.Environ()).Msg("Config loaded.")
configLoaded = true
}

Expand Down
1 change: 1 addition & 0 deletions server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func setupLogCapture() (*bytes.Buffer, func()) {

return logBuffer, func() {
log.Logger = log.Output(os.Stderr)
log.Debug().Str("logBuffer", logBuffer.String()).Msg("dumping logbuffer")
}
}

Expand Down

0 comments on commit d0a8f58

Please sign in to comment.