Skip to content

Commit

Permalink
Don't log to STDOUT during HTTP server tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Jun 18, 2018
1 parent b4e48ae commit f0467b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interfacer/src/browsh/browsh.go
Expand Up @@ -60,7 +60,7 @@ func Log(msg string) {
if !*isDebug {
return
}
if *IsHTTPServer {
if *IsHTTPServer && !IsTesting {
fmt.Println(msg)
} else {
f, oErr := os.OpenFile(logfile, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
Expand Down

0 comments on commit f0467b6

Please sign in to comment.