mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix: ignore coderd log errors (#14166)
- This is the source of a lot of our flakes recently.
This commit is contained in:
@ -204,7 +204,7 @@ func NewOptions(t testing.TB, options *Options) (func(http.Handler), context.Can
|
||||
options = &Options{}
|
||||
}
|
||||
if options.Logger == nil {
|
||||
logger := slogtest.Make(t, nil).Leveled(slog.LevelDebug).Named("coderd")
|
||||
logger := slogtest.Make(t, &slogtest.Options{IgnoreErrors: true}).Leveled(slog.LevelDebug).Named("coderd")
|
||||
options.Logger = &logger
|
||||
}
|
||||
if options.GoogleTokenValidator == nil {
|
||||
|
Reference in New Issue
Block a user