Skip to content

Commit

Permalink
#136: Disabled stacktrace for the init time warning
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-glushko committed Feb 11, 2024
1 parent 4363a55 commit 5119dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/routers/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (c *LangRouterConfig) BuildModels(tel *telemetry.Telemetry) ([]providers.La
}

if len(models) == 1 {
tel.Logger.Warn(
tel.Logger.WithOptions(zap.AddStacktrace(zap.ErrorLevel)).Warn(
fmt.Sprintf("Router \"%v\" has only one active model defined. "+
"This is not recommended for production setups. "+
"Define at least a few models to leverage resiliency logic Glide provides",
Expand Down

0 comments on commit 5119dd1

Please sign in to comment.