Revert "aggressive error logging during startup"
This reverts commit 59295f9cae
.
This commit is contained in:
parent
245cef430c
commit
a54c51f954
1 changed files with 4 additions and 7 deletions
|
@ -69,7 +69,7 @@ class abook_carddav extends addressbook_backend {
|
||||||
$this->listing = $param['listing'];
|
$this->listing = $param['listing'];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->open(true);
|
$this->open(true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return $this->set_error('Invalid argument to constructor');
|
return $this->set_error('Invalid argument to constructor');
|
||||||
|
@ -87,15 +87,12 @@ class abook_carddav extends addressbook_backend {
|
||||||
$discover = new Discovery();
|
$discover = new Discovery();
|
||||||
$abooks = $discover->discoverAddressbooks($this->account);
|
$abooks = $discover->discoverAddressbooks($this->account);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
echo "Error during addressbook discovery: " . $e->getMessage();
|
// $log->error("!!! Error during addressbook discovery: " . $e->getMessage());
|
||||||
return $this->set_error(_("Error during addressbook discovery: ") . $e->getMessage());
|
exit(1);
|
||||||
// exit(1);
|
|
||||||
}
|
}
|
||||||
if (count($abooks) <= 0) {
|
if (count($abooks) <= 0) {
|
||||||
// $log->warning("Cannot proceed because no addressbooks were found - exiting");
|
// $log->warning("Cannot proceed because no addressbooks were found - exiting");
|
||||||
echo "Cannot proceed because no addressbooks were found - exiting";
|
exit(0);
|
||||||
return $this->set_error(_("Cannot proceed because no addressbooks were found - exiting"));
|
|
||||||
// exit(0);
|
|
||||||
}
|
}
|
||||||
//////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////
|
||||||
// THE FOLLOWING SHOWS HOW TO PERFORM A SYNCHRONIZATION //
|
// THE FOLLOWING SHOWS HOW TO PERFORM A SYNCHRONIZATION //
|
||||||
|
|
Loading…
Reference in a new issue