Skip to content

Commit

Permalink
cmd/compile: set log prefix and suppress date
Browse files Browse the repository at this point in the history
Fixes #13320.

Change-Id: I3a96a6707982629caf89656c479d096891783328
Reviewed-on: https://go-review.googlesource.com/17050
Reviewed-by: Robert Griesemer <[email protected]>
  • Loading branch information
minux committed Nov 19, 2015
1 parent 8d31a86 commit 23791ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cmd/compile/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ import (
"cmd/compile/internal/x86"
"cmd/internal/obj"
"fmt"
"log"
"os"
)

func main() {
// disable timestamps for reproducible output
log.SetFlags(0)
log.SetPrefix("compile: ")

switch obj.Getgoarch() {
default:
fmt.Fprintf(os.Stderr, "compile: unknown architecture %q\n", obj.Getgoarch())
Expand Down

0 comments on commit 23791ee

Please sign in to comment.