Permalink
Browse files

DB logging tested

Still need to deal with setting linger to 0 on shutdown.
  • Loading branch information...
1 parent 3df093d commit e9192f14c4192ecbd5ab85bca63524866fc2ffdb @Beirdo Beirdo committed Apr 25, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 mythtv/libs/libmythbase/loggingserver.cpp
@@ -717,6 +717,7 @@ void LogServerThread::receivedMessage(const QList<QByteArray> &msg)
lock2.unlock();
logger = new SyslogLogger; // inserts into loggerMap
lock2.relock();
+ logger->setupZMQSocket();
clients = new ClientList;
logRevClientMap.insert(logger, clients);
@@ -748,6 +749,7 @@ void LogServerThread::receivedMessage(const QList<QByteArray> &msg)
logger =
new DatabaseLogger(table.toLocal8Bit().constData());
lock2.relock();
+ logger->setupZMQSocket();
clients = new ClientList;
logRevClientMap.insert(logger, clients);
@@ -916,7 +918,6 @@ void SyslogLogger::receivedMessage(const QList<QByteArray> &msg)
void DatabaseLogger::receivedMessage(const QList<QByteArray> &msg)
{
- cout << "db" << endl;
// Filter on the clientId
QByteArray clientBa = msg.first();
QString clientId = QString(clientBa.toHex());

0 comments on commit e9192f1

Please sign in to comment.