Skip to content

Commit

Permalink
Silence standard log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Mar 24, 2021
1 parent 7ed6332 commit 9d2d314
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package main

import (
"embed"
"io"
"io/fs"
"log"

"github.com/andig/evcc/cmd"
"github.com/andig/evcc/server"
Expand All @@ -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()
}

0 comments on commit 9d2d314

Please sign in to comment.