-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug log what happens during reminders processing #28703
Conversation
@@ -111,8 +108,9 @@ public function __construct(Backend $backend, | |||
* @throws NotificationProvider\ProviderNotAvailableException | |||
* @throws NotificationTypeDoesNotExistException | |||
*/ | |||
public function processReminders():void { | |||
public function processReminders() :void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be applied to all methods in this file 😁.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤫
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, it hurts
9f352df
to
2473433
Compare
$reminders = $this->backend->getRemindersToProcess(); | ||
$this->logger->debug(sprintf("%d reminders to process", count($reminders))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$this->logger->debug(sprintf("%d reminders to process", count($reminders))); | |
$this->logger->debug(sprintf('%d reminders to process', count($reminders))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or you use:
$this->logger->debug(sprintf("%d reminders to process", count($reminders))); | |
$this->logger->debug('{reminders} reminders to process', ['reminders' => count($reminders)]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I debugged the one on or company instance a bit:
if (!is_string($calendarData)) {
\OC::$server->getLogger()->error(
'Debugging: ReminderService::parseCalendarData: '.
(is_resource($reminder['calendardata'])
? 'is_resource'
: '!is_resource') .
'id' . $reminder['id'] .
'calendar_id' . $reminder['calendar_id'] .
'object_id' . $reminder['object_id'] .
'recurrence_id' . $reminder['recurrence_id'],
['app' => 'dav-nickvergessen-debugging']
);
}
Debugging: ReminderService::parseCalendarData:
!is_resource
id 68522
calendar_id 119
object_id 0
recurrence_id 1639650600
So the reminder is not linked with any object?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind logging $reminder['is_recurring']
and $reminder['is_recurrence_exception']
as well? I feel this may be the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is_recurring true
is_recurrence_exception false
2473433
to
7ea99d5
Compare
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
7ea99d5
to
58f7a15
Compare
For nextcloud/calendar#3000