mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
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:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// A Rivendell LWRP audio switcher driver for LiveWire networks.
|
||||
//
|
||||
// (C) Copyright 2002-2013,2016-2018 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
|
||||
@@ -19,6 +19,7 @@
|
||||
//
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <syslog.h>
|
||||
|
||||
#include <rdapplication.h>
|
||||
#include <rddb.h>
|
||||
@@ -167,9 +168,9 @@ void LiveWireLwrpAudio::processCommand(RDMacro *cmd)
|
||||
|
||||
void LiveWireLwrpAudio::nodeConnectedData(unsigned id)
|
||||
{
|
||||
LogLine(RDConfig::LogInfo,QString().
|
||||
sprintf("connection established to LiveWire node at \"%s\"",
|
||||
(const char *)livewire_nodes[id]->hostname()));
|
||||
syslog(LOG_INFO,
|
||||
"connection established to LiveWire node at \"%s\"",
|
||||
(const char *)livewire_nodes[id]->hostname().toUtf8());
|
||||
}
|
||||
|
||||
|
||||
@@ -232,5 +233,5 @@ void LiveWireLwrpAudio::destinationChangedData(unsigned id,RDLiveWireDestination
|
||||
|
||||
void LiveWireLwrpAudio::watchdogStateChangedData(unsigned id,const QString &msg)
|
||||
{
|
||||
LogLine(RDConfig::LogNotice,msg);
|
||||
syslog(LOG_WARNING,msg);
|
||||
}
|
||||
|
Reference in New Issue
Block a user