mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 15:16:07 +01:00
2019-06-21 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDApplication::syslog()' methods.
This commit is contained in:
@@ -167,10 +167,10 @@ void SoftwareAuthority::connectedData()
|
||||
|
||||
void SoftwareAuthority::connectionClosedData()
|
||||
{
|
||||
syslog(LOG_WARNING,
|
||||
rda->syslog(LOG_WARNING,
|
||||
"connection to SoftwareAuthority device at %s:%d closed unexpectedly, attempting reconnect",
|
||||
(const char *)swa_ipaddress.toString().toUtf8(),
|
||||
swa_ipport);
|
||||
(const char *)swa_ipaddress.toString().toUtf8(),
|
||||
swa_ipport);
|
||||
if(swa_stop_cart>0) {
|
||||
ExecuteMacroCart(swa_stop_cart);
|
||||
}
|
||||
@@ -207,25 +207,25 @@ void SoftwareAuthority::errorData(int err)
|
||||
{
|
||||
switch((Q3Socket::Error)err) {
|
||||
case Q3Socket::ErrConnectionRefused:
|
||||
syslog(LOG_WARNING,
|
||||
rda->syslog(LOG_WARNING,
|
||||
"connection to SoftwareAuthority device at %s:%d refused, attempting reconnect",
|
||||
(const char *)swa_ipaddress.toString().toUtf8(),
|
||||
swa_ipport);
|
||||
(const char *)swa_ipaddress.toString().toUtf8(),
|
||||
swa_ipport);
|
||||
swa_reconnect_timer->start(SWAUTHORITY_RECONNECT_INTERVAL,true);
|
||||
break;
|
||||
|
||||
case Q3Socket::ErrHostNotFound:
|
||||
syslog(LOG_WARNING,
|
||||
rda->syslog(LOG_WARNING,
|
||||
"error on connection to SoftwareAuthority device at %s:%d: Host Not Found",
|
||||
(const char *)swa_ipaddress.toString().toUtf8(),
|
||||
swa_ipport);
|
||||
(const char *)swa_ipaddress.toString().toUtf8(),
|
||||
swa_ipport);
|
||||
break;
|
||||
|
||||
case Q3Socket::ErrSocketRead:
|
||||
syslog(LOG_WARNING,
|
||||
rda->syslog(LOG_WARNING,
|
||||
"error on connection to SoftwareAuthority device at %s:%d: Socket Read Error",
|
||||
(const char *)swa_ipaddress.toString().toUtf8(),
|
||||
swa_ipport);
|
||||
(const char *)swa_ipaddress.toString().toUtf8(),
|
||||
swa_ipport);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -269,10 +269,10 @@ void SoftwareAuthority::DispatchCommand()
|
||||
return;
|
||||
}
|
||||
if(section=="login failure") {
|
||||
syslog(LOG_WARNING,
|
||||
rda->syslog(LOG_WARNING,
|
||||
"error on connection to SoftwareAuthority device at %s:%d: Login Failure",
|
||||
(const char *)swa_ipaddress.toString().toUtf8(),
|
||||
swa_ipport);
|
||||
(const char *)swa_ipaddress.toString().toUtf8(),
|
||||
swa_ipport);
|
||||
swa_socket->close();
|
||||
return;
|
||||
}
|
||||
@@ -348,10 +348,10 @@ void SoftwareAuthority::DispatchCommand()
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
|
||||
syslog(LOG_INFO,
|
||||
"connection to SoftwareAuthority device at %s:%d established",
|
||||
(const char *)swa_ipaddress.toString().toUtf8(),
|
||||
swa_ipport);
|
||||
rda->syslog(LOG_INFO,
|
||||
"connection to SoftwareAuthority device at %s:%d established",
|
||||
(const char *)swa_ipaddress.toString().toUtf8(),
|
||||
swa_ipport);
|
||||
if(swa_start_cart>0) {
|
||||
ExecuteMacroCart(swa_start_cart);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user