Skip to content
Permalink
Browse files

Server/Misc: Fixed static analysis issue.

Signed-off-by: AriDEV <aridev666@gmail.com>
  • Loading branch information
AriDEV committed Feb 10, 2020
1 parent 39eb6f0 commit e2f5d9cbf86ffa0549266f8fd80d0be73211eed4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/server/shared/Logging/Log.cpp
@@ -95,7 +95,7 @@ void Log::CreateAppenderFromConfig(std::string const& appenderName)

if (level > LogLevel::LOG_LEVEL_FATAL)
{
fprintf(stderr, "Log::CreateAppenderFromConfig: Wrong Log Level %d for appender %s\n", level, name.c_str());
fprintf(stderr, "Log::CreateAppenderFromConfig: Wrong Log Level %d for appender %s\n", static_cast<int>(level), name.c_str());
return;
}

@@ -154,7 +154,7 @@ void Log::CreateAppenderFromConfig(std::string const& appenderName)
break;
}
default:
fprintf(stderr, "Log::CreateAppenderFromConfig: Unknown type %d for appender %s\n", type, name.c_str());
fprintf(stderr, "Log::CreateAppenderFromConfig: Unknown type %d for appender %s\n", static_cast<int>(type), name.c_str());
break;
}
}

0 comments on commit e2f5d9c

Please sign in to comment.
You can’t perform that action at this time.