Skip to content

Commit

Permalink
core: repair default log level
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Jun 11, 2019
1 parent 3f67623 commit 6c8ffe8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/core/src/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ struct GlobalLoggingInitStruct
};

LogLevel GlobalLoggingInitStruct::m_defaultUnconfiguredGlobalLevel = GlobalLoggingInitStruct::m_isDebugBuild
? LOG_LEVEL_DEBUG
? LOG_LEVEL_INFO
: LOG_LEVEL_WARNING;


Expand Down
4 changes: 2 additions & 2 deletions modules/core/src/utils/logtagconfigparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ namespace cv {
namespace utils {
namespace logging {

LogTagConfigParser::LogTagConfigParser()
LogTagConfigParser::LogTagConfigParser(LogLevel defaultUnconfiguredGlobalLevel)
{
m_parsedGlobal.namePart = "global";
m_parsedGlobal.isGlobal = true;
m_parsedGlobal.hasPrefixWildcard = false;
m_parsedGlobal.hasSuffixWildcard = false;
m_parsedGlobal.level = LOG_LEVEL_VERBOSE;
m_parsedGlobal.level = defaultUnconfiguredGlobalLevel;
}

LogTagConfigParser::LogTagConfigParser(const std::string& input)
Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/utils/logtagconfigparser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace logging {
class LogTagConfigParser
{
public:
LogTagConfigParser();
LogTagConfigParser(LogLevel defaultUnconfiguredGlobalLevel = LOG_LEVEL_VERBOSE);
explicit LogTagConfigParser(const std::string& input);
~LogTagConfigParser();

Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/utils/logtagmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const char* LogTagManager::m_globalName = "global";
LogTagManager::LogTagManager(LogLevel defaultUnconfiguredGlobalLevel)
: m_mutex()
, m_globalLogTag(new LogTag(m_globalName, defaultUnconfiguredGlobalLevel))
, m_config(std::make_shared<LogTagConfigParser>())
, m_config(std::make_shared<LogTagConfigParser>(defaultUnconfiguredGlobalLevel))
{
assign(m_globalName, m_globalLogTag.get());
}
Expand Down

0 comments on commit 6c8ffe8

Please sign in to comment.