diff --git a/app/jobs/clean_up_pushes_job.rb b/app/jobs/clean_up_pushes_job.rb index f2e365487809..966c56e00ccd 100644 --- a/app/jobs/clean_up_pushes_job.rb +++ b/app/jobs/clean_up_pushes_job.rb @@ -65,7 +65,7 @@ def perform(*args) private def logger - @logger ||= if ENV.key?(PWP_WORKER) + @logger ||= if ENV.key?("PWP_WORKER") # We are running inside the pwpush-worker container. Log to STDOUT Logger.new($stdout) else diff --git a/app/jobs/expire_pushes_job.rb b/app/jobs/expire_pushes_job.rb index 28fd87d68d59..a02a811528e8 100644 --- a/app/jobs/expire_pushes_job.rb +++ b/app/jobs/expire_pushes_job.rb @@ -53,7 +53,7 @@ def perform(*args) private def logger - @logger ||= if ENV.key?(PWP_WORKER) + @logger ||= if ENV.key?("PWP_WORKER") # We are running inside the pwpush-worker container. Log to STDOUT # so that docker logs works to investigate problems. Logger.new($stdout)