Mercurial > hg > orthanc-object-storage
diff Common/EncryptionConfigurator.cpp @ 152:d62f52be1943
use Orthanc frameworking for logging
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 21 Jun 2024 11:22:57 +0200 |
parents | 3c7e0374f28e |
children |
line wrap: on
line diff
--- a/Common/EncryptionConfigurator.cpp Fri Jun 21 10:29:52 2024 +0200 +++ b/Common/EncryptionConfigurator.cpp Fri Jun 21 11:22:57 2024 +0200 @@ -24,11 +24,13 @@ #include "EncryptionConfigurator.h" +#include <Logging.h> + bool ReadMasterKey(uint32_t& id, std::string& keyPath, const Json::Value& node) { if (!node.isArray() || node.size() != 2 || !node[0].isUInt() || !node[1].isString()) { - OrthancPlugins::LogWarning("Encryption: Invalid master key configuration"); + LOG(WARNING) << "Encryption: Invalid master key configuration"; return false; } @@ -52,7 +54,7 @@ if (!cryptoJson.isMember("MasterKey") || !cryptoJson["MasterKey"].isArray()) { - OrthancPlugins::LogWarning("Encryption: MasterKey missing. Unable to initialize encryption"); + LOG(WARNING) << "Encryption: MasterKey missing. Unable to initialize encryption"; return nullptr; }