Skip to content

Disable QA_LOG_LEVEL during spec execution

George Koltsov requested to merge jmd-fix-spec-when-qa-log-level-set into master

What does this MR do and why?

Fixes a flaky spec which fails in scenarios where a user has QA_LOG_LEVEL environment variable set locally to value other than INFO

How to set up and validate locally

export QA_LOG_LEVEL=DEBUG 
bundle exec rspec 

Prior to this change - this would have failed as the default log level value of INFO != DEBUG

       -[{:level=>"INFO", :path=>"/tmp/qa-log"}]
       +[{:level=>"DEBUG", :path=>"/tmp/qa-log"}]

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by George Koltsov

Merge request reports

Loading