/** * Disables logging to memory */ private static function disable_memory() { if (!self::$log_memory) { return; } self::$log_memory = false; }