changeset 4293:29729b7eb6ab

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 11:23:47 +0100
parents 6dcadbf1a8af
children 0923247e69f6
files OrthancFramework/Sources/Logging.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Sources/Logging.cpp	Thu Nov 05 10:24:05 2020 +0100
+++ b/OrthancFramework/Sources/Logging.cpp	Thu Nov 05 11:23:47 2020 +0100
@@ -661,7 +661,9 @@
       prefix = (std::string(date) + path.filename().string() + ":" +
                 boost::lexical_cast<std::string>(line) + "] ");
 
-      if (category != LogCategory_GENERIC)
+      if (level != LogLevel_ERROR &&
+          level != LogLevel_WARNING &&
+          category != LogCategory_GENERIC)
       {
         prefix += "(" + std::string(GetCategoryName(category)) + ") ";
       }