class Sidekiq::CLI
def initialize_logger
def initialize_logger if @config[:verbose] || ENV["DEBUG_INVOCATION"] == "1" # DEBUG_INVOCATION is a systemd-ism triggered by # RestartMode=debug. We turn on debugging when the # sidekiq process crashes and is restarted with this flag. @config.logger.level = ::Logger::DEBUG end end