mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-13 06:03:37 +02: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:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Process Rivendell Command-Line Switches
|
||||
//
|
||||
// (C) Copyright 2002-2005,2016 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -29,7 +29,7 @@
|
||||
RDCmdSwitch::RDCmdSwitch(int argc,char *argv[],const char *modname,
|
||||
const char *usage)
|
||||
{
|
||||
bool debug=false;
|
||||
switch_debug=false;
|
||||
|
||||
for(int i=1;i<argc;i++) {
|
||||
QString value=QString::fromUtf8(argv[i]);
|
||||
@@ -42,7 +42,7 @@ RDCmdSwitch::RDCmdSwitch(int argc,char *argv[],const char *modname,
|
||||
exit(0);
|
||||
}
|
||||
if(value=="-d") {
|
||||
debug=true;
|
||||
switch_debug=true;
|
||||
}
|
||||
QStringList f0=value.split("=");
|
||||
if(f0.size()>=2) {
|
||||
@@ -59,16 +59,6 @@ RDCmdSwitch::RDCmdSwitch(int argc,char *argv[],const char *modname,
|
||||
switch_processed.push_back(false);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Initialize Logging
|
||||
//
|
||||
if(debug) {
|
||||
openlog(modname,LOG_PERROR,LOG_USER);
|
||||
}
|
||||
else {
|
||||
openlog(modname,0,LOG_USER);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -111,3 +101,9 @@ bool RDCmdSwitch::allProcessed() const
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool RDCmdSwitch::debugActive() const
|
||||
{
|
||||
return switch_debug;
|
||||
}
|
||||
|
Reference in New Issue
Block a user