2019-06-21 Fred Gleason <fredg@paravelsystems.com>

* Added 'RDApplication::syslog()' methods.
This commit is contained in:
Fred Gleason
2019-06-24 16:40:18 -04:00
parent 52dc14a3b3
commit f50447eb8b
71 changed files with 1064 additions and 887 deletions

View File

@@ -66,7 +66,9 @@ void Xport::DeleteAudio()
delete q;
SendNotification(RDNotification::CartType,RDNotification::ModifyAction,
QVariant(cartnum));
syslog(LOG_NOTICE,"unlink(%s): %s",(const char *)RDCut::pathName(cartnum,cutnum).utf8(),strerror(errno));
rda->syslog(LOG_DEBUG,"unlink(%s): %s",
(const char *)RDCut::pathName(cartnum,cutnum).utf8(),
strerror(errno));
delete cut;
XmlExit("OK",200,"deleteaudio.cpp",LINE_NUMBER);
}

View File

@@ -449,9 +449,10 @@ void Xport::XmlExit(const QString &str,int code,const QString &srcfile,
delete xport_post;
}
if(code>=400) {
syslog(LOG_WARNING,"%s '%s' %s",
(const char *)str.toUtf8(),(const char *)srcfile.toUtf8(),
(srcline>0)?(const char *)QString().sprintf("line %d",srcline).toUtf8():"");
rda->syslog(LOG_WARNING,"%s '%s' %s",
(const char *)str.toUtf8(),(const char *)srcfile.toUtf8(),
(srcline>0)?(const char *)QString().sprintf("line %d",srcline).
toUtf8():"");
}
#ifdef RDXPORT_DEBUG
if(srcline>0) {

View File

@@ -50,7 +50,7 @@ void Xport::SaveString()
//
// Process Request
//
syslog(LOG_NOTICE,"SAVESTRING: |%s|",(const char *)string.utf8());
rda->syslog(LOG_NOTICE,"SAVESTRING: |%s|",(const char *)string.utf8());
printf("Content-type: application/xml; charset: UTF-8\n");
printf("Status: 200\n\n");
printf("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");