Skip to content

Commit

Permalink
don't attach slack notifier for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
evanofslack committed Jul 15, 2023
1 parent 5778525 commit 491b65a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/cmd/analogdb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ func main() {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
logger.Info().Str("App", cfg.App.Name).Str("Version", cfg.App.Version).Msg("Initializing application")
logger.Info().Str("App", cfg.App.Name).Str("Version", cfg.App.Version).Str("env", cfg.App.Env).Str("loglevel", cfg.Log.Level).Msg("Initializing application")

if webhookURL := cfg.Log.WebhookURL; webhookURL != "" {
if webhookURL := cfg.Log.WebhookURL; webhookURL != "" && cfg.App.Env != "debug" {
logger = logger.WithSlackNotifier(webhookURL)
}

Expand Down

0 comments on commit 491b65a

Please sign in to comment.