cron: fix tasks not being logged.
Fix maintenance tasks not being logged by the cron daemon because in production the log level defaulted to `error` instead of `info`.
This commit is contained in:
@@ -27,6 +27,7 @@ module DanbooruMaintenance
|
|||||||
end
|
end
|
||||||
|
|
||||||
def queue(job)
|
def queue(job)
|
||||||
|
Rails.logger.level = :info
|
||||||
DanbooruLogger.info("Queueing #{job.name}")
|
DanbooruLogger.info("Queueing #{job.name}")
|
||||||
job.perform_later
|
job.perform_later
|
||||||
rescue Exception # rubocop:disable Lint/RescueException
|
rescue Exception # rubocop:disable Lint/RescueException
|
||||||
|
|||||||
Reference in New Issue
Block a user