Rails change logger level for a specific job
|Added at||2016-11-10 15:11|
I need to debug a job on my production data. I have enhanced my ActiveJobs to support a dry_run mode, and I'd like to temporarily change the logger level to
I am calling in my console
I am instanciating my logger as a class variable during job initialization
How can I either switch the Rails logger (just for this Job) or maybe copy the current Rails logger and just change the log level ?