Module: LogStruct::Integrations::GoodJob::CompactErrorLines
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/log_struct/integrations/good_job.rb
Overview
GoodJob::LogSubscriber logs errors as text with the whole backtrace in the message (over 10KB).
GoodJob passes every error its job tasks raise, every systemd watchdog error and every notifier
error except connection errors to on_thread_error, which LogThreadErrors logs as a structured
line, so GoodJob's own lines for those are off. The notifier passes connection errors on only
once they repeat, so its line for them is kept, without the backtrace.
Instance Method Summary collapse
- #finished_job_task(_event) ⇒ void
- #notifier_notify_error(event) ⇒ void
- #systemd_watchdog_error(_event) ⇒ void
Instance Method Details
#finished_job_task(_event) ⇒ void
This method returns an undefined value.
66 67 |
# File 'lib/log_struct/integrations/good_job.rb', line 66 def finished_job_task(_event) end |
#notifier_notify_error(event) ⇒ void
This method returns an undefined value.
70 71 72 73 74 75 76 |
# File 'lib/log_struct/integrations/good_job.rb', line 70 def notifier_notify_error(event) exception = event.payload[:error] return unless exception return unless LogStruct::Integrations::GoodJob.notifier_connection_error?(exception) error { "Notifier errored: #{exception.class}: #{exception}" } end |
#systemd_watchdog_error(_event) ⇒ void
This method returns an undefined value.
79 80 |
# File 'lib/log_struct/integrations/good_job.rb', line 79 def systemd_watchdog_error(_event) end |