comment debug log
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user