Skip to content

Commit 6f7e235

Browse files
committed
fix: Linting errors
1 parent 8898ebd commit 6f7e235

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

app/jobs/application_job.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ class ApplicationJob < ActiveJob::Base
1111
span.status = OpenTelemetry::Trace::Status.error(error.message)
1212
span.record_exception(
1313
error,
14-
attributes: { "job.class" => self.class.name, "job.id" => job_id }
14+
attributes: {"job.class" => self.class.name, "job.id" => job_id}
1515
)
1616

1717
Rails.logger.error("Job failed", job_class: self.class.name, job_id: job_id,
18-
error: error.message, error_class: error.class.name,
19-
backtrace: error.backtrace&.first(5))
18+
error: error.message, error_class: error.class.name,
19+
backtrace: error.backtrace&.first(5))
2020

2121
# Re-raise the exception to be handled by the job framework (SolidQueue).
2222
raise error

config/initializers/solid_queue.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@
88
span.record_exception(error)
99

1010
Rails.logger.error("SolidQueue thread error", error: error.message,
11-
error_class: error.class.name,
12-
backtrace: error.backtrace&.first(5))
11+
error_class: error.class.name, backtrace: error.backtrace&.first(5))
1312
end

0 commit comments

Comments
 (0)