Skip to content

Commit

Permalink
[sensorfw] Actually install the message handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
rburchell committed Oct 8, 2013
1 parent 4553a14 commit c8fafda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sensord/main.cpp
Expand Up @@ -47,7 +47,7 @@
static QtMsgType logLevel;
static QtMessageHandler previousMessageHandler;

static void messageOutput(QtMsgType type, QMessageLogContext &context, const QString &str)
static void messageOutput(QtMsgType type, const QMessageLogContext &context, const QString &str)
{
if (type < logLevel)
return;
Expand Down Expand Up @@ -90,6 +90,8 @@ void signalINT(int param)

int main(int argc, char *argv[])
{
previousMessageHandler = qInstallMessageHandler(messageOutput);

QCoreApplication app(argc, argv);
SensorManager& sm = SensorManager::instance();
Parser parser(app.arguments());
Expand Down

0 comments on commit c8fafda

Please sign in to comment.