Mercurial > hg > orthanc
diff Core/Logging.cpp @ 2253:441352e7a9d1
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Jan 2017 14:16:46 +0100 |
parents | a3a65de1840f |
children | 2aff870c2c58 |
line wrap: on
line diff
--- a/Core/Logging.cpp Fri Jan 20 13:14:30 2017 +0100 +++ b/Core/Logging.cpp Wed Jan 25 14:16:46 2017 +0100 @@ -91,7 +91,7 @@ void Initialize(OrthancPluginContext* context) { - context_ = context_; + context_ = context; } InternalLogger::InternalLogger(const char* level, @@ -117,6 +117,11 @@ { OrthancPluginLogInfo(context_, message_.c_str()); } + else + { + std::string s = "Unknown log level (" + level_ + ") for message: " + message_; + OrthancPluginLogError(context_, s.c_str()); + } } }