Hello,
I'm using rivertest (from github.com/riverqueue/river v0.23.1) and noticed that the executor isn't logging where I expected.
With a setup like this
_, err = rivertest.NewWorker(t, driver, &river.Config{
Logger: slog.New(slog.DiscardHandler),
}, ...)
I still get logs from the job executor like:
logger.go:256: time=2025-07-11T15:55:53.243+02:00 level=WARN msg="jobexecutor.JobExecutor: Job errored; retrying" error=" ... "
Best I can tell the method rivertest.Worker.workJob calls riversharedtest.BaseServiceArchetype which calls rivertestshared.Logger which always makes a logger writing into the testing.TB.
Is there any way to control these logs that I am missing, or could it be added?
Hello,
I'm using
rivertest(fromgithub.com/riverqueue/river v0.23.1) and noticed that the executor isn't logging where I expected.With a setup like this
I still get logs from the job executor like:
Best I can tell the method
rivertest.Worker.workJobcallsriversharedtest.BaseServiceArchetypewhich callsrivertestshared.Loggerwhich always makes a logger writing into thetesting.TB.Is there any way to control these logs that I am missing, or could it be added?