From 9d2d314b8a62ab813b2e173231275bb209dece34 Mon Sep 17 00:00:00 2001 From: andig Date: Wed, 24 Mar 2021 11:47:31 +0100 Subject: [PATCH] Silence standard log messages --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index 23f04a0bb..73a552761 100644 --- a/main.go +++ b/main.go @@ -2,7 +2,9 @@ package main import ( "embed" + "io" "io/fs" + "log" "github.com/andig/evcc/cmd" "github.com/andig/evcc/server" @@ -23,5 +25,9 @@ func init() { } func main() { + // suppress deprecated: golang.org/x/oauth2: Transport.CancelRequest no longer does anything; use contexts + // see https://github.com/golang/oauth2/issues/487 + log.SetOutput(io.Discard) + cmd.Execute() }