Skip to content

Commit d1c4472

Browse files
author
Rob Pike
committed
Add a sentence to the documentation that flag.Parse must be called first.
1 parent 20cea4d commit d1c4472

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

glog.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
//
3838
// By default, all log statements write to files in a temporary directory.
3939
// This package provides several flags that modify this behavior.
40+
// As a result, flag.Parse must be called before any logging is done.
4041
//
4142
// -logtostderr=false
4243
// Logs are written to standard error instead of to files.

0 commit comments

Comments
 (0)