mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
2019-06-21 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDApplication::syslog()' methods.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -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) {
|
||||
|
@@ -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");
|
||||
|
Reference in New Issue
Block a user