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
|
||||
|
||||
def queue(job)
|
||||
Rails.logger.level = :info
|
||||
DanbooruLogger.info("Queueing #{job.name}")
|
||||
job.perform_later
|
||||
rescue Exception # rubocop:disable Lint/RescueException
|
||||
|
||||
Reference in New Issue
Block a user