Skip to content

Commit

Permalink
add log level 0 for encryption sanity check failed message
Browse files Browse the repository at this point in the history
  • Loading branch information
schnello committed Aug 3, 2015
1 parent ccbc8f6 commit 86ff6fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/protocols/MeterOMS.cpp
Expand Up @@ -299,6 +299,7 @@ ssize_t MeterOMS::read(std::vector<Reading> &rds, size_t n)
if (_mbus_debug) mbus_frame_print(&frame);
if (frame.length1<=14 || frame.data[12] != 0x2f || frame.data[13] != 0x2f) {
print(log_debug, "encryption sanity check failed", name().c_str());
print(log_error, "encryption sanity check failed", name().c_str());
} else {
print(log_finest, "successfully decrypted a frame", name().c_str());
mbus_frame_data frame_data;
Expand Down

0 comments on commit 86ff6fb

Please sign in to comment.