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
@@ -79,11 +80,17 @@ public function generate(AppointmentConfig $config,
79
80
80
81
// If we reach this state then there are no available dates anymore
81
82
if ($latestEnd <= $earliestStart) {
83
+
$this->logger->debug('Appointment config ' . $config->getToken() . ' has {latestEnd} as latest end but {earliestStart} as earliest start. No slots available.', [
84
+
'latestEnd' => $latestEnd,
85
+
'earliestStart' => $earliestStart,
86
+
'app' => 'calendar-appointments'
87
+
]);
82
88
return [];
83
89
}
84
90
85
91
if (empty($config->getAvailability())) {
86
92
// No availability -> full time range is available
93
+
$this->logger->debug('Full time range available', ['app' => 'calendar-appointments']);
87
94
return [
88
95
newInterval($earliestStart, $latestEnd),
89
96
];
@@ -95,6 +102,7 @@ public function generate(AppointmentConfig $config,
$this->logger->info('Could not send booking emails after confirmation from user ' . $booking->getEmail(), ['exception' => $e]);
145
+
$this->logger->info('Could not send booking emails after confirmation from user ' . $booking->getEmail(), ['exception' => $e, 'app' => 'calendar-appointments']);
$this->logger->warning('Could not send booking information notification after confirmation by user ' . $booking->getEmail(), ['exception' => $e]);
151
+
$this->logger->warning('Could not send booking information notification after confirmation by user ' . $booking->getEmail(), ['exception' => $e, 'app' => 'calendar-appointments']);
152
152
}
153
153
154
154
return$booking;
@@ -203,10 +203,13 @@ public function getAvailableSlots(AppointmentConfig $config, int $startTime, int
203
203
if ($config->getFutureLimit() !== null) {
204
204
/** @var int $maxEndTime */
205
205
$maxEndTime = time() + $config->getFutureLimit();
206
+
$this->logger->debug('Maximum end time: ' . $maxEndTime, ['app' => 'calendar-appointments']);
206
207
if ($startTime > $maxEndTime) {
208
+
$this->logger->debug('Start time is higher than maximum end time. Start time: ' . $startTime, ['app' => 'calendar-appointments']);
207
209
return [];
208
210
}
209
211
if ($endTime > $maxEndTime) {
212
+
$this->logger->debug('End time is higher than maximum end time. Setting end time to maximum end time. End time: ' . $endTime, ['app' => 'calendar-appointments']);
210
213
$endTime = $maxEndTime;
211
214
}
212
215
}
@@ -224,7 +227,8 @@ public function getAvailableSlots(AppointmentConfig $config, int $startTime, int
@@ -81,13 +85,16 @@ public function filter(AppointmentConfig $config, array $slots): array {
81
85
82
86
$this->logger->debug('Appointment config ' . $config->getToken() . ' is looking within {start} and {followup} in calendar {calendarUri}. Conflicting UIDs are {uids}', [
0 commit comments