mirror of
https://github.com/mangosfour/server.git
synced 2025-12-24 10:37:02 +00:00
Minor styling tidy up
This commit is contained in:
parent
f959ae40b6
commit
63e73a18fa
2 changed files with 183 additions and 55 deletions
|
|
@ -422,13 +422,19 @@ void Log::outString(const char* str, ...)
|
|||
void Log::outError(const char* err, ...)
|
||||
{
|
||||
if (!err)
|
||||
{ return; }
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_colored)
|
||||
{ SetColor(false, m_colors[LogError]); }
|
||||
{
|
||||
SetColor(false, m_colors[LogError]);
|
||||
}
|
||||
|
||||
if (m_includeTime)
|
||||
{ outTime(); }
|
||||
{
|
||||
outTime();
|
||||
}
|
||||
|
||||
va_list ap;
|
||||
|
||||
|
|
@ -437,7 +443,9 @@ void Log::outError(const char* err, ...)
|
|||
va_end(ap);
|
||||
|
||||
if (m_colored)
|
||||
{ ResetColor(false); }
|
||||
{
|
||||
ResetColor(false);
|
||||
}
|
||||
|
||||
fprintf(stderr, "\n");
|
||||
if (logfile)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue