lib/good_job/cli.rb in good_job-3.4.5 vs lib/good_job/cli.rb in good_job-3.4.6
- old
+ new
@@ -154,10 +154,10 @@
#
# GoodJob components that need access to constants, classes, etc. from
# Rails or from the application can be set up here.
def set_up_application!
require RAILS_ENVIRONMENT_RB
- return unless GoodJob::CLI.log_to_stdout? && !ActiveSupport::Logger.logger_outputs_to?(GoodJob.logger, $stdout)
+ return if !GoodJob::CLI.log_to_stdout? || ActiveSupport::Logger.logger_outputs_to?(GoodJob.logger, $stdout)
GoodJob::LogSubscriber.loggers << ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new($stdout))
GoodJob::LogSubscriber.reset_logger
end
end