diff --git a/lib/GroupHelper.php b/lib/GroupHelper.php index fbbf817e7..b7be1ade4 100644 --- a/lib/GroupHelper.php +++ b/lib/GroupHelper.php @@ -67,9 +67,8 @@ public function addEvent(int $id, IEvent $event): void { } } catch (UnknownActivityException) { } catch (\InvalidArgumentException) { - // todo 33.0.0 Log as warning // todo 39.0.0 Log as error - $this->logger->debug(get_class($provider) . '::parse() threw \InvalidArgumentException which is deprecated. Throw \OCP\Activity\Exceptions\UnknownActivityException when the event is not known to your provider and otherwise handle all \InvalidArgumentException yourself.', ['app' => $event->getApp()]); + $this->logger->warning(get_class($provider) . '::parse() threw \InvalidArgumentException which is deprecated. Throw \OCP\Activity\Exceptions\UnknownActivityException when the event is not known to your provider and otherwise handle all \InvalidArgumentException yourself.', ['app' => $event->getApp()]); } catch (\Throwable $e) { $this->logger->error('Error while parsing activity event', ['exception' => $e, 'app' => $event->getApp()]); } diff --git a/lib/NotificationGenerator.php b/lib/NotificationGenerator.php index 43dfc6d1b..99e3e3b70 100644 --- a/lib/NotificationGenerator.php +++ b/lib/NotificationGenerator.php @@ -82,9 +82,8 @@ private function populateEvent(IEvent $event, string $language) { $event = $provider->parse($language, $event); } catch (UnknownActivityException) { } catch (\InvalidArgumentException $e) { - // todo 33.0.0 Log as warning // todo 39.0.0 Log as error - $this->logger->debug(get_class($provider) . '::parse() threw \InvalidArgumentException which is deprecated. Throw \OCP\Activity\Exceptions\UnknownActivityException when the event is not known to your provider and otherwise handle all \InvalidArgumentException yourself.'); + $this->logger->warning(get_class($provider) . '::parse() threw \InvalidArgumentException which is deprecated. Throw \OCP\Activity\Exceptions\UnknownActivityException when the event is not known to your provider and otherwise handle all \InvalidArgumentException yourself.'); } } $this->activityManager->setFormattingObject('', 0);