logging - Rails change logger level for a specific job -


i need debug job on production data. have enhanced activejobs support dry_run mode, , i'd temporarily change logger level :debugfor specific job execution

i calling in console

myjob.perform_later(dry_run: true, log_level: 'debug') 

i instanciating logger class variable during job initialization

@logger = rails.logger , return if logger.blank? 

how can either switch rails logger (just job) or maybe copy current rails logger , change log level ?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -