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

Filter executor log messages #2172

Merged
merged 3 commits into from
Jan 13, 2017
Merged

Filter executor log messages #2172

merged 3 commits into from
Jan 13, 2017

Conversation

diptanu
Copy link
Contributor

@diptanu diptanu commented Jan 9, 2017

WIP: Tests needs to be fixed. PR for running tests on Travis.

Fixes #2106

@diptanu diptanu force-pushed the b-executor-log-level branch from 9c92fdf to 1470d4e Compare January 12, 2017 21:46
filter := &logutils.LevelFilter{
Levels: []logutils.LogLevel{"TRACE", "DEBUG", "INFO", "WARN", "ERR"},
MinLevel: logutils.LogLevel(strings.ToUpper(logLevel)),
Writer: ioutil.Discard,
Copy link
Contributor

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)
Copy link
Contributor

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")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"json configuration not provided"

@diptanu diptanu force-pushed the b-executor-log-level branch from 1470d4e to a066d90 Compare January 12, 2017 23:48
@diptanu diptanu merged commit e9961ef into master Jan 13, 2017
@diptanu diptanu deleted the b-executor-log-level branch January 13, 2017 00:11
@github-actions
Copy link

github-actions bot commented Apr 9, 2023

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[question] - executor can't create pid
2 participants