Index: sources/canbus/messagebuilder.cpp =================================================================== diff -u -r15de0cd12dad1ea5107c52e5ed89280bc9e29b1d -r3aab84456cfbdc4c4f495975ba9b8968eb844309 --- sources/canbus/messagebuilder.cpp (.../messagebuilder.cpp) (revision 15de0cd12dad1ea5107c52e5ed89280bc9e29b1d) +++ sources/canbus/messagebuilder.cpp (.../messagebuilder.cpp) (revision 3aab84456cfbdc4c4f495975ba9b8968eb844309) @@ -111,7 +111,7 @@ vPayload += mAction & 0xFF; // low byte } else { QString mHexString = Format::toHexString(vAction, false, eLenMessageIDDigits); - LOG_ERROR(tr("Incorrect Action ID '%1'").arg(mHexString)); + LOG_DEBUG(QString("Incorrect Action ID '%1'").arg(mHexString)); return false; } return true; @@ -140,7 +140,7 @@ if (vData.length() < len) { QString mHexMIdString = Format::toHexString(vAction, false, eLenMessageIDDigits); QString mHexDatString = vData.toHex('.').toUpper(); - LOG_ERROR(tr("Not enough data has been provided for the Message ID '%1'\r\n%2") + LOG_DEBUG(QString("Not enough data has been provided for the Message ID '%1'\r\n%2") .arg(mHexMIdString) .arg(mHexDatString) ); @@ -230,7 +230,7 @@ quint8 mBeenRead = 0; if ( ! checkCRC(crcData, mExpected, mBeenRead ) ) { // CRC is always next byte after Data static quint64 erCRC = 0; - LOG_ERROR(tr("%1 - CRC error, expected %2 but got %3 : %4") + LOG_DEBUG(QString("%1 - CRC error, expected %2 but got %3 : %4") .arg(++erCRC) .arg(Format::toHexString(mExpected, true, eLenCRCDigits)) .arg(Format::toHexString(mBeenRead, true, eLenCRCDigits)) @@ -265,7 +265,7 @@ vMessage.data = getData (mPayload, vMessage.length); vMessage.initialized = true; } else { // Expected Header but got pure data - LOG_ERROR(tr("Expected Header, got frame without Sync byte")); + LOG_DEBUG(QString("Expected Header, got frame without Sync byte")); printPayload(vPayload, false ,vCan_Id); return false; } @@ -355,7 +355,7 @@ { QByteArray headInfo; if (vPayload.length() < eLenHeaderInfo) { - LOG_ERROR("Incorrect Message Header"); + LOG_DEBUG("Incorrect Message Header"); return headInfo; } for (int i = 0; i < eLenHeaderInfo; i++) {