mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-29 16:50:13 +01: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:
@@ -19,6 +19,7 @@
|
||||
//
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <syslog.h>
|
||||
|
||||
#include <qtimer.h>
|
||||
|
||||
@@ -56,7 +57,8 @@ BtGpi16::BtGpi16(RDMatrix *matrix,QObject *parent)
|
||||
bt_device->setWordLength(tty->dataBits());
|
||||
bt_device->setParity(tty->parity());
|
||||
if(!bt_device->open(QIODevice::Unbuffered|QIODevice::ReadWrite)) {
|
||||
LogLine(RDConfig::LogWarning,"unable to open serial device \""+tty->port()+"\".");
|
||||
syslog(LOG_WARNING,"unable to open serial device \"%s\"",
|
||||
(const char *)tty->port().toUtf8());
|
||||
}
|
||||
}
|
||||
delete tty;
|
||||
|
||||
Reference in New Issue
Block a user