Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
nadrino committed Apr 25, 2021
1 parent c5d6a38 commit bf82601
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/implementation/Logger.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ namespace {

// Remove extra spaces left by non-applied tags
LoggerUtils::removeRepeatedCharInsideInputStr(_currentPrefix_, " ");
// Remove extra spaces on the left
while(_currentPrefix_[0] == ' ') _currentPrefix_ = _currentPrefix_.substr(1, _currentPrefix_.size());

// User prefix can have doubled spaces
// "{USER_HEADER}" ->
// "{USER_HEADER}" -> User prefix can have doubled spaces and spaces on the left
if( not _userHeaderStr_.empty() ){
strBuffer = "";
Logger::getFormattedUserHeaderStr(strBuffer);
Expand Down Expand Up @@ -226,7 +226,6 @@ namespace {
}
}
std::string Logger::getLogLevelColorStr(const LogLevel &selectedLogLevel_) {

switch (selectedLogLevel_) {
case Logger::LogLevel::FATAL:
return "\033[41m";
Expand All @@ -245,7 +244,6 @@ namespace {
default:
return "";
}

}
std::string Logger::getLogLevelStr(const LogLevel &selectedLogLevel_) {

Expand Down

0 comments on commit bf82601

Please sign in to comment.