-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Filter executor log messages #2172
Conversation
9c92fdf
to
1470d4e
Compare
filter := &logutils.LevelFilter{ | ||
Levels: []logutils.LogLevel{"TRACE", "DEBUG", "INFO", "WARN", "ERR"}, | ||
MinLevel: logutils.LogLevel(strings.ToUpper(logLevel)), | ||
Writer: ioutil.Discard, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't the Discard make all logs disappear
Writer: ioutil.Discard, | ||
} | ||
|
||
e.logger = log.New(filter, "", log.LstdFlags) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.New(logOutput, "", log.LstdFlags|log.Lmicroseconds)
to be like the client. Easier to correlate stuff when debugging
if len(args) == 0 { | ||
e.Ui.Error("log output file isn't provided") | ||
if len(args) != 1 { | ||
e.Ui.Error("log output file and log level are not provided") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"json configuration not provided"
1470d4e
to
a066d90
Compare
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
WIP: Tests needs to be fixed. PR for running tests on Travis.
Fixes #2106