Skip to content

Commit

Permalink
Update log level
Browse files Browse the repository at this point in the history
  • Loading branch information
hs-arodrigues committed Mar 28, 2024
1 parent e694fc6 commit a7d5a9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/que/job_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module JobMethods
# ActiveJob.
def _run(args: nil, kwargs: nil, reraise_errors: false)
Que.log(
level: :debug,
level: :info,
event: :entering_run,
job_id: que_target.que_attrs[:id],
message: 'Entering _run',
Expand All @@ -56,7 +56,7 @@ def _run(args: nil, kwargs: nil, reraise_errors: false)
end

Que.log(
level: :debug,
level: :info,
event: :run_args,
job_id: que_target.que_attrs[:id],
args: args,
Expand Down
2 changes: 1 addition & 1 deletion lib/que/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def work_job(metajob)
end
rescue Exception => error
Que.log(
level: :debug,
level: :info,
event: :mysterious_job_errored,
job_id: metajob.id,
error: {
Expand Down

0 comments on commit a7d5a9f

Please sign in to comment.