private function audit($msg)
    {
        // Log the message if enabled
        if ($this->app['config']->get('general/debug_permission_audit_mode', false)) {
            $this->app['logger.system']->info($msg, ['event' => 'authentication']);
        }
    }