You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/GroupHelper.php
+15-7Lines changed: 15 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -61,23 +61,31 @@ public function addEvent(int $id, IEvent $event): void {
61
61
} else {
62
62
$event = $provider->parse($language, $event);
63
63
}
64
+
65
+
if (!$event->isValidParsed()) {
66
+
$this->logger->info('Activity event was claimed to be parsed, but was not fully parsed by ' . get_class($provider) . ' [app: ' . $event->getApp() . ', subject: ' . $event->getSubject() . ']', ['app' => $event->getApp()]);
67
+
}
64
68
} catch (UnknownActivityException) {
65
69
} catch (\InvalidArgumentException) {
66
70
// todo 33.0.0 Log as warning
67
71
// todo 39.0.0 Log as error
68
-
$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.');
72
+
$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()]);
69
73
} catch (\Throwable$e) {
70
-
$this->logger->error('Error while parsing activity event', ['exception' => $e]);
0 commit comments