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

* Refactored logging system to use syslog(3) exclusively.
	* Removed the 'Facility=', 'LogDirectory=', 'CoreDumpDirectory='
	and 'LogPattern=' directives from rd.conf(5).
This commit is contained in:
Fred Gleason
2019-06-17 17:46:26 -04:00
parent 5d7e82e540
commit a094fbc788
67 changed files with 934 additions and 1441 deletions

View File

@@ -18,6 +18,8 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#include <syslog.h>
#include <rdapplication.h>
#include <rdcart.h>
#include <rduser.h>
@@ -180,9 +182,8 @@ void MainObject::RunLocalMacros(RDMacro *rml)
return;
}
else {
LogLine(RDConfig::LogWarning,QString().
sprintf("unable to handle RS macro for deck %d: device busy",
chan));
syslog(LOG_WARNING,"unable to handle RS macro for deck %d: device busy",
chan);
if(rml->echoRequested()) {
rml->acknowledge(false);
rda->ripc()->sendRml(rml);