We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
1 parent b2bceb6 commit 3b5be9fCopy full SHA for 3b5be9f
main.go
@@ -22,6 +22,7 @@ import (
22
_ "embed"
23
"encoding/json"
24
"flag"
25
+ "io"
26
"os"
27
"os/exec"
28
"runtime"
@@ -99,10 +100,6 @@ var (
99
100
Systray systray.Systray
101
)
102
-type nullWriter int
103
-
104
-func (nullWriter) Write([]byte) (int, error) { return 0, nil }
105
106
type logWriter struct{}
107
108
func (u *logWriter) Write(p []byte) (n int, err error) {
@@ -322,7 +319,7 @@ func loop() {
322
319
323
320
if !*verbose {
324
321
log.Println("You can enter verbose mode to see all logging by starting with the -v command line switch.")
325
- log.SetOutput(new(nullWriter)) //route all logging to nullwriter
+ log.SetOutput(io.Discard)
326
}
327
328
// save crashreport to file
0 commit comments