Skip to content

Commit

Permalink
Fix Rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
iMacTia committed Nov 29, 2024
1 parent 4ac2866 commit fe4710a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Metrics/BlockLength:
Exclude:
- spec/**/*.rb

Metrics/ModuleLength:
Enabled: false

Layout/LineLength:
Max: 120
Exclude:
Expand Down
4 changes: 3 additions & 1 deletion lib/sidekiq/logging/shared.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def log_job_exception(job, started_at, exc)

config = Sidekiq::Logstash.configuration
if config.log_job_exception_with_causes
payload['error'] = ExceptionUtils.get_exception_with_cause_hash(exc, max_depth_left: config.causes_logging_max_depth)
payload['error'] = ExceptionUtils.get_exception_with_cause_hash(
exc, max_depth_left: config.causes_logging_max_depth
)
else
exc = exc.cause || exc if exc.is_a? Sidekiq::JobRetry::Handled
payload['error_message'] = exc.message
Expand Down

0 comments on commit fe4710a

Please sign in to comment.