Skip to content

Commit

Permalink
Allow to disable debug output
Browse files Browse the repository at this point in the history
Currently if `BEAKER_debug` variable is set to anything then `beaker` is started with `--log-level debug` CLI option. This change allows to not enable debug logging if `BEAKER_debug` is set to `no`. That's useful when some upper layer sets this variable by default (as there is no way to unset it after).
  • Loading branch information
jay7x committed Dec 18, 2022
1 parent 50dd0e6 commit 432dd33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/beaker-rspec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
nodesetfile = options[:nodesetfile] || File.join(nodesetdir, "#{options[:nodeset]}.yml")
fresh_nodes = options[:provision] == 'no' ? '--no-provision' : nil
keyfile = options[:keyfile] ? ['--keyfile', options[:keyfile]] : nil
debug = options[:debug] ? ['--log-level', 'debug'] : nil
debug = options[:debug] && options[:debug] != 'no' ? ['--log-level', 'debug'] : nil
color = options[:color] == 'no' ? ['--no-color'] : nil
options_file = options[:optionsfile] ? ['--options-file',options[:optionsfile]] : nil

Expand Down

0 comments on commit 432dd33

Please sign in to comment.