comparison OrthancFramework/Sources/Logging.cpp @ 4293:29729b7eb6ab

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 11:23:47 +0100
parents 6dcadbf1a8af
children 0923247e69f6
comparison
equal deleted inserted replaced
4292:6dcadbf1a8af 4293:29729b7eb6ab
659 static_cast<int>(duration.fractional_seconds())); 659 static_cast<int>(duration.fractional_seconds()));
660 660
661 prefix = (std::string(date) + path.filename().string() + ":" + 661 prefix = (std::string(date) + path.filename().string() + ":" +
662 boost::lexical_cast<std::string>(line) + "] "); 662 boost::lexical_cast<std::string>(line) + "] ");
663 663
664 if (category != LogCategory_GENERIC) 664 if (level != LogLevel_ERROR &&
665 level != LogLevel_WARNING &&
666 category != LogCategory_GENERIC)
665 { 667 {
666 prefix += "(" + std::string(GetCategoryName(category)) + ") "; 668 prefix += "(" + std::string(GetCategoryName(category)) + ") ";
667 } 669 }
668 } 670 }
669 671