comment debug log

This commit is contained in:
2023-02-12 21:05:34 +01:00
parent c392ffde0d
commit 07ae847443

View File

@@ -35,7 +35,7 @@ class GoogleCalendarService {
);
try {
Log::debug('G-Calendar: Call google with #getCalendar for calendar with id: ' . $calendarId);
//Log::debug('G-Calendar: Call google with #getCalendar for calendar with id: ' . $calendarId);
$response = $this->service->events->listEvents($calendarId, $params);
Cache::put($this->cacheKeyCalendarGet.$calendarId, $response, $cacheTime);
@@ -53,10 +53,10 @@ class GoogleCalendarService {
public function calendarList() {
$cachedCalendarList = Cache::get($this->cacheKeyCalendarList);
$cacheTime = Settings::get('cache_time', $this->cacheTimeDefault);
if(!isset($cachedCalendarList) || $cacheTime == 0) {
try {
Log::debug('G-Calendar: Call google with #calendarList.');
//Log::debug('G-Calendar: Call google with #calendarList.');
$response = $this->service->calendarList->listCalendarList()->getItems();
Cache::put($this->cacheKeyCalendarList, $response, $cacheTime);
@@ -100,7 +100,7 @@ class GoogleCalendarService {
}
array_push($events, $calendarEvents);
}
return $events;
}
}
}