From 64761aa8ad0a850bb7a9be328710ad52d7ffeb78 Mon Sep 17 00:00:00 2001 From: Em Sharnoff Date: Mon, 17 Jun 2024 12:59:36 -0700 Subject: [PATCH] agent: Set log level to info (#969) Our current debug logs are largely not useful in production, and the volume is very high. So, let's disable debug logs for now - can individually re-enable log lines by setting them to info later, when needed. Ref https://neondb.slack.com/archives/C03TN5G758R/p1718652664673599?thread_ts=1718210683.556539 --- cmd/autoscaler-agent/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/autoscaler-agent/main.go b/cmd/autoscaler-agent/main.go index 703df7af9..28a846959 100644 --- a/cmd/autoscaler-agent/main.go +++ b/cmd/autoscaler-agent/main.go @@ -21,8 +21,8 @@ import ( func main() { logConfig := zap.NewProductionConfig() - logConfig.Sampling = nil // Disable sampling, which the production config enables by default. - logConfig.Level.SetLevel(zap.DebugLevel) // Allow debug logs + logConfig.Sampling = nil // Disable sampling, which the production config enables by default. + logConfig.Level.SetLevel(zap.InfoLevel) // Only "info" level and above (i.e. not debug logs) logger := zap.Must(logConfig.Build()).Named("autoscaler-agent") defer logger.Sync() //nolint:errcheck // what are we gonna do, log something about it?