Silence standard log messages
This commit is contained in:
parent
7ed6332913
commit
9d2d314b8a
1 changed files with 6 additions and 0 deletions
6
main.go
6
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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue