Skip to content

Commit

Permalink
DB logging tested
Browse files Browse the repository at this point in the history
Still need to deal with setting linger to 0 on shutdown.
  • Loading branch information
Beirdo committed Apr 25, 2012
1 parent 3df093d commit e9192f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/libs/libmythbase/loggingserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit e9192f1

Please sign in to comment.