Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use info in default stderrThreshold #42

Merged
merged 1 commit into from
Feb 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions klog.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
// Logs are written to standard error instead of to files.
// -alsologtostderr=false
// Logs are written to standard error as well as to files.
// -stderrthreshold=ERROR
// -stderrthreshold=INFO
// Log events at or above this severity are logged to standard
// error as well as to files.
// -log_dir=""
Expand Down Expand Up @@ -396,8 +396,8 @@ type flushSyncWriter interface {
}

func init() {
// Default stderrThreshold is ERROR.
logging.stderrThreshold = errorLog
// Default stderrThreshold is INFO.
logging.stderrThreshold = infoLog

logging.setVState(0, nil, false)
go logging.flushDaemon()
Expand Down