Skip to content

Commit

Permalink
disable automatic stack traces for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sharnoff committed Dec 12, 2024
1 parent 5e20f88 commit 5b02227
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoscale-scheduler/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
func main() {
logConfig := zap.NewProductionConfig()
logConfig.Sampling = nil // Disable sampling, which the production config enables by default.
logConfig.DisableStacktrace = true
logger := zap.Must(logConfig.Build()).Named("autoscale-scheduler")

if err := runProgram(logger); err != nil {
Expand Down

0 comments on commit 5b02227

Please sign in to comment.