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

Allow customized logger when using node manager #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chrisroberts
Copy link

Provides extra options to configure where logging output is directed.

@@ -44,6 +44,23 @@ def self.parse(source)
options[:chroot] = chroot
end

opts.on('-l', '--log-level LEVEL', 'Log level (default: INFO)') do |log_level|
options[:log_level] = case log_level.to_s.downcase
Copy link
Contributor

Choose a reason for hiding this comment

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

Given what you're doing down below in: util.rb, I would suggest consolidating your entire log-level switch into one line.

options[:log_level] = Logger.const_get(log_level.upcase) rescue nil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants