forked from extern/egroupware
give out messages about the failure of connection only when debug is enabled
This commit is contained in:
parent
397706b2e3
commit
650723d7d9
@ -493,20 +493,20 @@
|
||||
$this->setStreamContextOptions($this->_getTransportOptions());
|
||||
$this->setTimeout(20);
|
||||
if( PEAR::isError($status = parent::connect($this->_getTransportString(), $this->port, $this->encryption == 1)) ) {
|
||||
error_log(__METHOD__."Could not connect with ".$this->_getTransportString()." on Port ".$this->port." Encryption==1?".$this->encryption);
|
||||
error_log(__METHOD__."Status connect:".$status->message);
|
||||
if ($this->debug) error_log(__METHOD__."Could not connect with ".$this->_getTransportString()." on Port ".$this->port." Encryption==1?".$this->encryption);
|
||||
if ($this->debug) error_log(__METHOD__."Status connect:".$status->message);
|
||||
$this->_connectionErrorObject = $status;
|
||||
return false;
|
||||
}
|
||||
if(empty($username))
|
||||
{
|
||||
error_log(__METHOD__."No username supplied.".function_backtrace());
|
||||
if ($this->debug) error_log(__METHOD__."No username supplied.".function_backtrace());
|
||||
return false;
|
||||
}
|
||||
if( PEAR::isError($status = parent::login($username, $password, TRUE, !$this->isAdminConnection)) ) {
|
||||
error_log(__METHOD__."Could not log in with ->".$username.":".$password."<-");
|
||||
error_log(__METHOD__."Status login:".array2string($status->message));
|
||||
//error_log(__METHOD__.'Called from:'.function_backtrace());
|
||||
if ($this->debug) error_log(__METHOD__."Could not log in with ->".$username.":".$password."<- Domain:".$GLOBALS['egw_info']['user']['domain']);
|
||||
if ($this->debug) error_log(__METHOD__."Status login:".array2string($status->message));
|
||||
if ($this->debug) error_log(__METHOD__.'Called from:'.function_backtrace());
|
||||
$this->disconnect();
|
||||
$this->_connectionErrorObject = $status;
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user