Skip to content

rivertest logging #979

Description

@vblcc

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions