mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Print out unexpected non-JSON messages.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user