Mercurial > hg > orthanc
changeset 2253:441352e7a9d1
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Jan 2017 14:16:46 +0100 |
parents | 002b94046c69 |
children | 4305c183c7f8 |
files | Core/Logging.cpp |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
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()); + } } }