gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit eccb3800d03b585bec78c1ddcd0dced216526eb2
parent dc766f9e6fe5b7abffd95fc190adc29918759c7c
Author: Daniele Sluijters <daenney@users.noreply.github.com>
Date:   Tue, 31 Jan 2023 09:39:46 +0100

[chore] Silence maxprocs logging (#1402)

This switches the logger to Debug. By default the library logs things
internally despite returning errors. Due to the way we had it hooked up
this resulted in scary error level logs being emitted for innocuous
errors. Now those errors will only be visible in debug mode.

Fixes: #1398
Relates to: #1336
Diffstat:
Mcmd/gotosocial/action/server/server.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/gotosocial/action/server/server.go b/cmd/gotosocial/action/server/server.go @@ -62,7 +62,7 @@ import ( // Start creates and starts a gotosocial server var Start action.GTSAction = func(ctx context.Context) error { - _, err := maxprocs.Set(maxprocs.Logger(log.Errorf)) + _, err := maxprocs.Set(maxprocs.Logger(log.Debugf)) if err != nil { return fmt.Errorf("failed to set CPU limits from cgroup: %s", err) }