mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 23:25:57 +01:00
2019-06-21 Fred Gleason <fredg@paravelsystems.com>
* Added a 'SyslogFacility=' directive to the '[Identity'] section of rd.conf(5). * Added a 'syslog.openlog()' call to the constructor of the 'PyPAD.Receiver' class. * Removed the 'syslog.openlog()' call from the 'pypad_icecast2.py' script. * Removed the 'syslog.openlog()' call from the 'pypad_live365.py' script. * Removed the 'syslog.openlog()' call from the 'pypad_serial.py' script. * Removed the 'syslog.openlog()' call from the 'pypad_shoutcast1.py' script. * Removed the 'syslog.openlog()' call from the 'pypad_spinitron.py' script. * Removed the 'syslog.openlog()' call from the 'pypad_tunein.py' script. * Removed the 'syslog.openlog()' call from the 'pypad_urlwrite.py' script. * Removed the 'syslog.openlog()' call from the 'pypad_walltime.py' script. * Removed the 'syslog.openlog()' call from the 'pypad_xcmd.py' script. * Removed the 'syslog.openlog()' call from the 'pypad_xmpad.py' script.
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
//
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <syslog.h>
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qobject.h>
|
||||
@@ -135,6 +136,16 @@ bool RDApplication::open(QString *err_msg,RDApplication::ErrorType *err_type,
|
||||
app_config->load();
|
||||
app_config->setModuleName(app_module_name);
|
||||
|
||||
//
|
||||
// Initialize Logging
|
||||
//
|
||||
if(app_cmd_switch->debugActive()) {
|
||||
openlog(app_command_name,LOG_PERROR,app_config->syslogFacility());
|
||||
}
|
||||
else {
|
||||
openlog(app_command_name,0,app_config->syslogFacility());
|
||||
}
|
||||
|
||||
//
|
||||
// Check Rivendell Service Status
|
||||
//
|
||||
@@ -259,12 +270,6 @@ RDUser *RDApplication::user()
|
||||
return app_user;
|
||||
}
|
||||
|
||||
/*
|
||||
void RDApplication::log(RDConfig::LogPriority prio,const QString &msg)
|
||||
{
|
||||
app_config->log(app_module_name,prio,msg);
|
||||
}
|
||||
*/
|
||||
|
||||
bool RDApplication::dropTable(const QString &tbl_name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user