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:
evazion
2021-09-27 10:21:36 -05:00
parent 50d6cdf140
commit 3835a63771

View File

@@ -27,6 +27,7 @@ module DanbooruMaintenance
end
def queue(job)
Rails.logger.level = :info
DanbooruLogger.info("Queueing #{job.name}")
job.perform_later
rescue Exception # rubocop:disable Lint/RescueException