Change log level to debug
Factor out _log_override function