mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 14:28:45 +01:00
silence error_log on failed connection: tell only on debug==true, as user should be told on ui in anycase
This commit is contained in:
parent
7ae0a2fda3
commit
c6feba0985
@ -3370,7 +3370,7 @@ class felamimail_bo
|
|||||||
//error_log(__METHOD__.__LINE__.'->'.$_icServerID.' called from '.function_backtrace());
|
//error_log(__METHOD__.__LINE__.'->'.$_icServerID.' called from '.function_backtrace());
|
||||||
if (!is_object($this->mailPreferences))
|
if (!is_object($this->mailPreferences))
|
||||||
{
|
{
|
||||||
error_log(__METHOD__." No Object for MailPreferences found.". function_backtrace());
|
if (self::$debug) error_log(__METHOD__." No Object for MailPreferences found.". function_backtrace());
|
||||||
$this->errorMessage .= lang('No valid data to create MailProfile!!');
|
$this->errorMessage .= lang('No valid data to create MailProfile!!');
|
||||||
$isError[$_icServerID] = new PEAR_Error($this->errorMessage);
|
$isError[$_icServerID] = new PEAR_Error($this->errorMessage);
|
||||||
return false;
|
return false;
|
||||||
@ -3405,7 +3405,11 @@ class felamimail_bo
|
|||||||
if ( PEAR::isError($tretval) || $tretval===false)
|
if ( PEAR::isError($tretval) || $tretval===false)
|
||||||
{
|
{
|
||||||
$isError[$_icServerID] = $this->icServer->_connectionErrorObject;
|
$isError[$_icServerID] = $this->icServer->_connectionErrorObject;
|
||||||
error_log(__METHOD__." failed to open new Connection ProfileID:".$_icServerID.' Status:'.print_r($this->icServer->_connected,true).' Message:'.$this->icServer->_connectionErrorObject->message.' called from '.function_backtrace());
|
if (self::$debug)
|
||||||
|
{
|
||||||
|
error_log(__METHOD__.__LINE__." # failed to open new Connection ProfileID:".$_icServerID.' Status:'.print_r($this->icServer->_connected,true).' Message:'.$this->icServer->_connectionErrorObject->message.' called from '.function_backtrace());
|
||||||
|
error_log(__METHOD__.__LINE__.' # Instance='.$GLOBALS['egw_info']['user']['domain'].', User='.$GLOBALS['egw_info']['user']['account_lid']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//error_log(print_r($this->icServer->_connected,true));
|
//error_log(print_r($this->icServer->_connected,true));
|
||||||
@ -3413,14 +3417,14 @@ class felamimail_bo
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* rename a folder
|
* rename a folder
|
||||||
*
|
*
|
||||||
* @param string _oldFolderName the old foldername
|
* @param string _oldFolderName the old foldername
|
||||||
* @param string _parent the parent foldername
|
* @param string _parent the parent foldername
|
||||||
* @param string _folderName the new foldername
|
* @param string _folderName the new foldername
|
||||||
*
|
*
|
||||||
* @return mixed name of the newly created folder or false on error
|
* @return mixed name of the newly created folder or false on error
|
||||||
*/
|
*/
|
||||||
function renameFolder($_oldFolderName, $_parent, $_folderName)
|
function renameFolder($_oldFolderName, $_parent, $_folderName)
|
||||||
{
|
{
|
||||||
$oldFolderName = $this->_encodeFolderName($_oldFolderName);
|
$oldFolderName = $this->_encodeFolderName($_oldFolderName);
|
||||||
|
Loading…
Reference in New Issue
Block a user