From bb7bff48f5cfd64b3207f296950cb9b1c1c53004 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Wed, 14 Feb 2018 14:03:09 +0000 Subject: Don't suppress warnings if protocol version is version6_0. --- storageapi/src/vespa/storageapi/mbusprot/storageprotocol.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storageapi/src/vespa/storageapi/mbusprot/storageprotocol.cpp b/storageapi/src/vespa/storageapi/mbusprot/storageprotocol.cpp index e5b9b1f9102..30d6f5bd45c 100644 --- a/storageapi/src/vespa/storageapi/mbusprot/storageprotocol.cpp +++ b/storageapi/src/vespa/storageapi/mbusprot/storageprotocol.cpp @@ -119,8 +119,8 @@ StorageProtocol::encode(const vespalib::Version& version, } } catch (std::exception & e) { - if (version < version6_0 && - !suppressEncodeWarning(message.getInternalMessage().get())) { + if (!(version < version6_0 && + suppressEncodeWarning(message.getInternalMessage().get()))) { LOGBP(warning, "Failed to encode %s storage protocol message %s: %s", version.toString().c_str(), message.getInternalMessage()->toString().c_str(), -- cgit v1.2.3