From ee4f355e497f9b4f8ecc6b0697c6973a8db16f36 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 5 Jul 2022 17:58:45 -0700 Subject: [PATCH] Changed logging to debug Signed-off-by: snipe --- app/Http/Controllers/Auth/LoginController.php | 6 +++--- app/Listeners/LogListener.php | 2 +- app/Providers/AppServiceProvider.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index c16f00facb..f2189798a0 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -116,7 +116,7 @@ class LoginController extends Controller Auth::login($user); } else { $username = $saml->getUsername(); - \Log::warning("SAML user '$username' could not be found in database."); + \Log::debug("SAML user '$username' could not be found in database."); $request->session()->flash('error', trans('auth/message.signin.error')); $saml->clearData(); } @@ -127,7 +127,7 @@ class LoginController extends Controller } } catch (\Exception $e) { - \Log::warning('There was an error authenticating the SAML user: '.$e->getMessage()); + \Log::debug('There was an error authenticating the SAML user: '.$e->getMessage()); throw new \Exception($e->getMessage()); } @@ -138,7 +138,7 @@ class LoginController extends Controller if (!$saml->isEnabled()) { \Log::debug("SAML page requested, but SAML does not seem to enabled."); } else { - \Log::warning("SAML page requested, but samlData seems empty."); + \Log::debug("SAML page requested, but samlData seems empty."); } } diff --git a/app/Listeners/LogListener.php b/app/Listeners/LogListener.php index 8fb6bfc006..791a84f57a 100644 --- a/app/Listeners/LogListener.php +++ b/app/Listeners/LogListener.php @@ -54,7 +54,7 @@ class LogListener public function onCheckoutAccepted(CheckoutAccepted $event) { - \Log::error('event passed to the onCheckoutAccepted listener:'); + \Log::debug('event passed to the onCheckoutAccepted listener:'); $logaction = new Actionlog(); $logaction->item()->associate($event->acceptance->checkoutable); $logaction->target()->associate($event->acceptance->assignedTo); diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 29e581709f..607d206a67 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -40,7 +40,7 @@ class AppServiceProvider extends ServiceProvider if (strpos(env('APP_URL'), 'https') === 0) { $url->forceScheme('https'); } else { - \Log::warning("'APP_FORCE_TLS' is set to true, but 'APP_URL' does not start with 'https://'. Will not force TLS on connections."); + \Log::debug("'APP_FORCE_TLS' is set to true, but 'APP_URL' does not start with 'https://'. Will not force TLS on connections."); } }