# HG changeset patch # User Sebastien Jodogne # Date 1485350206 -3600 # Node ID 441352e7a9d18c1c7a4b04241a00a1514c8956ae # Parent 002b94046c695f748f37a5c9c73858b0ccd2bae0 fix diff -r 002b94046c69 -r 441352e7a9d1 Core/Logging.cpp --- 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()); + } } }