1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-18 11:51:44 +02:00

Print out unexpected non-JSON messages.

This commit is contained in:
Christian Muehlhaeuser
2014-12-16 23:51:08 +01:00
parent 3931304c68
commit 1c9fa28430

View File

@@ -283,8 +283,8 @@ ControlConnection::handleMsg( msg_ptr msg )
// All control connection msgs are JSON // All control connection msgs are JSON
if ( !msg->is( Msg::JSON ) ) if ( !msg->is( Msg::JSON ) )
{ {
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Received message was not in JSON format:" << qPrintable( msg->payload() );
Q_ASSERT( msg->is( Msg::JSON ) ); Q_ASSERT( msg->is( Msg::JSON ) );
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Received message was not in JSON format";
markAsFailed(); markAsFailed();
return; return;
} }