Skip to content

Commit

Permalink
Add a sentence to the documentation that flag.Parse must be called fi…
Browse files Browse the repository at this point in the history
…rst.
  • Loading branch information
Rob Pike committed Jan 15, 2014
1 parent 20cea4d commit d1c4472
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions glog.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
//
// By default, all log statements write to files in a temporary directory.
// This package provides several flags that modify this behavior.
// As a result, flag.Parse must be called before any logging is done.
//
// -logtostderr=false
// Logs are written to standard error instead of to files.
Expand Down

0 comments on commit d1c4472

Please sign in to comment.