refactor logging in calendar object listeners to use debug level

This commit is contained in:
Tiavina 2025-03-26 19:54:26 +03:00
parent 6ac8fc9ecc
commit 51890b88e9
4 changed files with 12 additions and 12 deletions

View File

@ -56,10 +56,10 @@ class CalendarObjectCreatedListener implements IEventListener {
$this->gestionService->HandleCreatedCalendarObject($vCalendarString); $this->gestionService->HandleCreatedCalendarObject($vCalendarString);
} }
catch(\OC\OCS\Exception $e){ 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){ 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());
} }
} }

View File

@ -57,10 +57,10 @@ class CalendarObjectMovedListener implements IEventListener {
$this->gestionService->HandleCalendarObjectMoved($vCalendarString,$targetCalendarId); $this->gestionService->HandleCalendarObjectMoved($vCalendarString,$targetCalendarId);
} }
catch(Exception $e){ 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){ 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());
} }
} }

View File

@ -57,10 +57,10 @@ class CalendarObjectUpdatedListener implements IEventListener {
$this->gestionService->HandleUpdatedCalendarObject($vCalendarString); $this->gestionService->HandleUpdatedCalendarObject($vCalendarString);
} }
catch(\OC\OCS\Exception $e){ 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){ 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());
} }
} }

View File

@ -238,10 +238,10 @@ class GestionService {
} }
} }
catch(\OC\OCS\Exception $e){ 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){ 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; return true;
} }
@ -268,10 +268,10 @@ class GestionService {
} }
} }
catch(\OC\OCS\Exception $e){ 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){ 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); $this->gestionBdd->createDevisTrajetFromVCalendar($devisId,$userName);
} }
catch(\OC\OCS\Exception $e){ 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){ 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());
} }
} }