Skip to content

Navigation Menu

Sign in
Sign up

Is there a way to disable the log QueryCacher[[]*dbsqlc.JobCountByStateRow]: Ran query and cached result duration..? #987

RobinLbt started this conversation in General
Discussion options

Is there a way to disable this log?

You must be logged in to vote

Replies: 1 comment

Comment options

Yep, it's a debug log line, so you just need to make sure you're running with minimum level of info or above.

With the main binary, this is accomplished with RIVER_LOG_LEVEL=info, although this should also be the default.

If using the handler version from Go code, make sure the injected logger is at least info. logger in this sample code:

	server, err := riverui.NewServer(&riverui.ServerOpts{
		Client: client,
		DevMode: true, // Use the live filesystem—don't use this outside tests
		DB: dbPool,
		Logger: logger,
		Prefix: "/riverui", // Mount the UI under /riverui path
	})
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /