/** * Disables logging to a file */ private static function disable_file() { if (!self::$log_file) { return; } self::$log_file = false; self::$dbg_fh = null; restore_error_handler(); }