Skip to content

Commit aaeaf4e

Browse files
andrewlecuyerJonathan S. Katz
authored andcommitted
Logger no Longer Defaults to "debug" Log Level
The logger utilized by the various Go applications comprising the PostgreSQL Operator no longer defaults to a "debug" logging level. Instead, by default the "info" logging level will be utilized (per the default set by the Logrus logging package), and the "debug" log level will now only be set if the 'CRUNCHY_DEBUG' environment variable is set to 'true'. Issue: [ch9476]
1 parent bbdd0e4 commit aaeaf4e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

logging/loglib.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,4 @@ func CrunchyLogger(logDetails LogValues) {
8888
// Output to stdout instead of the default stderr
8989
// Can be any io.Writer, see below for File example
9090
log.SetOutput(os.Stdout)
91-
92-
// Only log the debug severity or above.
93-
log.SetLevel(log.DebugLevel)
9491
}

0 commit comments

Comments
 (0)