From 51890b88e991cdfd4884ad48606f7e91bba13a87 Mon Sep 17 00:00:00 2001 From: Tiavina Date: Wed, 26 Mar 2025 19:54:26 +0300 Subject: [PATCH] refactor logging in calendar object listeners to use debug level --- .../lib/Listener/CalendarObjectCreatedListener.php | 4 ++-- gestion/lib/Listener/CalendarObjectMovedListener.php | 4 ++-- .../lib/Listener/CalendarObjectUpdatedListener.php | 4 ++-- gestion/lib/Service/GestionService.php | 12 ++++++------ 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/gestion/lib/Listener/CalendarObjectCreatedListener.php b/gestion/lib/Listener/CalendarObjectCreatedListener.php index d776172..861ff9c 100644 --- a/gestion/lib/Listener/CalendarObjectCreatedListener.php +++ b/gestion/lib/Listener/CalendarObjectCreatedListener.php @@ -56,10 +56,10 @@ class CalendarObjectCreatedListener implements IEventListener { $this->gestionService->HandleCreatedCalendarObject($vCalendarString); } catch(\OC\OCS\Exception $e){ - $this->logger->error("Error while handling created calendar object: ".$e->getMessage()); + $this->logger->debug("Error while handling created calendar object: ".$e->getMessage()); } catch(Exception $e){ - $this->logger->error("Error while handling created calendar object: ".$e->getMessage()); + $this->logger->debug("Error while handling created calendar object: ".$e->getMessage()); } } diff --git a/gestion/lib/Listener/CalendarObjectMovedListener.php b/gestion/lib/Listener/CalendarObjectMovedListener.php index e2f7320..a1fde87 100644 --- a/gestion/lib/Listener/CalendarObjectMovedListener.php +++ b/gestion/lib/Listener/CalendarObjectMovedListener.php @@ -57,10 +57,10 @@ class CalendarObjectMovedListener implements IEventListener { $this->gestionService->HandleCalendarObjectMoved($vCalendarString,$targetCalendarId); } catch(Exception $e){ - $this->logger->error("Error while handling calendar object moved event: ".$e->getMessage()); + $this->logger->debug("Error while handling calendar object moved event: ".$e->getMessage()); } catch(Exception $e){ - $this->logger->error("Error while handling calendar object moved event: ".$e->getMessage()); + $this->logger->debug("Error while handling calendar object moved event: ".$e->getMessage()); } } diff --git a/gestion/lib/Listener/CalendarObjectUpdatedListener.php b/gestion/lib/Listener/CalendarObjectUpdatedListener.php index 740ddd4..f9e1792 100644 --- a/gestion/lib/Listener/CalendarObjectUpdatedListener.php +++ b/gestion/lib/Listener/CalendarObjectUpdatedListener.php @@ -57,10 +57,10 @@ class CalendarObjectUpdatedListener implements IEventListener { $this->gestionService->HandleUpdatedCalendarObject($vCalendarString); } catch(\OC\OCS\Exception $e){ - $this->logger->error("Error while handling updated calendar object: ".$e->getMessage()); + $this->logger->debug("Error while handling updated calendar object: ".$e->getMessage()); } catch(Exception $e){ - $this->logger->error("Error while handling updated calendar object: ".$e->getMessage()); + $this->logger->debug("Error while handling updated calendar object: ".$e->getMessage()); } } diff --git a/gestion/lib/Service/GestionService.php b/gestion/lib/Service/GestionService.php index 6926b10..29b3673 100644 --- a/gestion/lib/Service/GestionService.php +++ b/gestion/lib/Service/GestionService.php @@ -238,10 +238,10 @@ class GestionService { } } catch(\OC\OCS\Exception $e){ - $this->logger->error("Error while handling created calendar object: ".$e->getMessage()); + $this->logger->debug("Error while handling created calendar object: ".$e->getMessage()); } catch(Exception $e){ - $this->logger->error("Error while handling created calendar object: ".$e->getMessage()); + $this->logger->debug("Error while handling created calendar object: ".$e->getMessage()); } return true; } @@ -268,10 +268,10 @@ class GestionService { } } catch(\OC\OCS\Exception $e){ - $this->logger->error("Error while handling calendar object moved event: ".$e->getMessage()); + $this->logger->debug("Error while handling calendar object moved event: ".$e->getMessage()); } catch(Exception $e){ - $this->logger->error("Error while handling calendar object moved event: ".$e->getMessage()); + $this->logger->debug("Error while handling calendar object moved event: ".$e->getMessage()); } } @@ -309,10 +309,10 @@ class GestionService { $this->gestionBdd->createDevisTrajetFromVCalendar($devisId,$userName); } catch(\OC\OCS\Exception $e){ - $this->logger->error("Error while handling created calendar object: ".$e->getMessage()); + $this->logger->debug("Error while handling created calendar object: ".$e->getMessage()); } catch(Exception $e){ - $this->logger->error("Error while handling created calendar object: ".$e->getMessage()); + $this->logger->debug("Error while handling created calendar object: ".$e->getMessage()); } }