R
R
rutaka nashimo2015-07-23 16:39:51
ruby
rutaka nashimo, 2015-07-23 16:39:51

Change the severity of the resque log?

In the worker, an exception may occur that is thrown by the fail instruction, after which the worker crashes and the resque master process writes this information to the logger, but the default severity for exceptions is INFO for some reason, although ERROR is more logical.
Is there a way to set the severity of exceptions to ERROR?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rutaka nashimo, 2015-07-24
@rutaka_n

redefined the log formatter so that if there was an exception description in the message, severity would be artificially increased.
not a very beautiful solution (crutch), but I don’t see other options.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question