MCPcopy Index your code
hub / github.com/riverqueue/river / LoggerWarn

Function LoggerWarn

rivershared/riversharedtest/riversharedtest.go:210–213  ·  view source on GitHub ↗

LoggerWarn returns a logger suitable for use in tests which outputs only at warn or above. Useful in tests where particularly noisy log output is expected.

(tb testutil.TestingTB)

Source from the content-addressed store, hash-verified

208// warn or above. Useful in tests where particularly noisy log output is
209// expected.
210func LoggerWarn(tb testutil.TestingTB) *slog.Logger {
211 tb.Helper()
212 return slogtest.NewLogger(tb, &slog.HandlerOptions{Level: slog.LevelWarn})
213}
214
215// TestDatabaseURL returns `TEST_DATABASE_URL` or a default URL pointing to
216// `river_test` and with suitable connection configuration defaults.

Callers 13

testProducerFunction · 0.92
TestSchemaFunction · 0.92
TestReindexerFunction · 0.92
TestQueueMaintainerFunction · 0.92
TestJobSchedulerFunction · 0.92
TestPeriodicJobEnqueuerFunction · 0.92
TestJobRescuerFunction · 0.92
TestJobCleanerFunction · 0.92
TestQueueCleanerFunction · 0.92
testElectorFunction · 0.92

Calls 2

NewLoggerFunction · 0.92
HelperMethod · 0.65

Tested by 13

testProducerFunction · 0.74
TestSchemaFunction · 0.74
TestReindexerFunction · 0.74
TestQueueMaintainerFunction · 0.74
TestJobSchedulerFunction · 0.74
TestPeriodicJobEnqueuerFunction · 0.74
TestJobRescuerFunction · 0.74
TestJobCleanerFunction · 0.74
TestQueueCleanerFunction · 0.74
testElectorFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…