Changeset View
Changeset View
Standalone View
Standalone View
lib/ext/Syncroton/Command/Sync.php
Show First 20 Lines • Show All 827 Lines • ▼ Show 20 Lines | public function getResponse() | ||||
$collectionChanges++; | $collectionChanges++; | ||||
} catch (Syncroton_Exception_MemoryExhausted $seme) { | } catch (Syncroton_Exception_MemoryExhausted $seme) { | ||||
// continue to next entry, as there is not enough memory left for the current entry | // continue to next entry, as there is not enough memory left for the current entry | ||||
// this will lead to MoreAvailable at the end and the entry will be synced during the next Sync command | // this will lead to MoreAvailable at the end and the entry will be synced during the next Sync command | ||||
if ($this->_logger instanceof Zend_Log) | if ($this->_logger instanceof Zend_Log) | ||||
$this->_logger->warn(__METHOD__ . '::' . __LINE__ . " memory exhausted for entry: " . $serverId); | $this->_logger->warn(__METHOD__ . '::' . __LINE__ . " memory exhausted for entry: " . $serverId); | ||||
continue; | break; | ||||
} catch (Exception $e) { | } catch (Exception $e) { | ||||
if ($this->_logger instanceof Zend_Log) | if ($this->_logger instanceof Zend_Log) | ||||
$this->_logger->warn(__METHOD__ . '::' . __LINE__ . " unable to convert entry to xml: " . $e->getMessage()); | $this->_logger->warn(__METHOD__ . '::' . __LINE__ . " unable to convert entry to xml: " . $e->getMessage()); | ||||
if ($this->_logger instanceof Zend_Log) | if ($this->_logger instanceof Zend_Log) | ||||
$this->_logger->debug(__METHOD__ . '::' . __LINE__ . " unable to convert entry to xml: " . $e->getTraceAsString()); | $this->_logger->debug(__METHOD__ . '::' . __LINE__ . " unable to convert entry to xml: " . $e->getTraceAsString()); | ||||
} | } | ||||
Show All 31 Lines | public function getResponse() | ||||
$collectionChanges++; | $collectionChanges++; | ||||
} catch (Syncroton_Exception_MemoryExhausted $seme) { | } catch (Syncroton_Exception_MemoryExhausted $seme) { | ||||
// continue to next entry, as there is not enough memory left for the current entry | // continue to next entry, as there is not enough memory left for the current entry | ||||
// this will lead to MoreAvailable at the end and the entry will be synced during the next Sync command | // this will lead to MoreAvailable at the end and the entry will be synced during the next Sync command | ||||
if ($this->_logger instanceof Zend_Log) | if ($this->_logger instanceof Zend_Log) | ||||
$this->_logger->warn(__METHOD__ . '::' . __LINE__ . " memory exhausted for entry: " . $serverId); | $this->_logger->warn(__METHOD__ . '::' . __LINE__ . " memory exhausted for entry: " . $serverId); | ||||
continue; | break; | ||||
} catch (Exception $e) { | } catch (Exception $e) { | ||||
if ($this->_logger instanceof Zend_Log) | if ($this->_logger instanceof Zend_Log) | ||||
$this->_logger->warn(__METHOD__ . '::' . __LINE__ . " unable to convert entry to xml: " . $e->getMessage()); | $this->_logger->warn(__METHOD__ . '::' . __LINE__ . " unable to convert entry to xml: " . $e->getMessage()); | ||||
} | } | ||||
unset($serverModifications['changed'][$id]); | unset($serverModifications['changed'][$id]); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |