mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11603] Drop sLog.outTitle.
Used hardcoded color use for title not compatible in all cases with selected in config console colors for normal output and with custom background can be not readbale. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
0af77807c1
commit
b68a88573f
4 changed files with 15 additions and 41 deletions
|
|
@ -346,31 +346,6 @@ std::string Log::GetTimestampStr()
|
|||
return std::string(buf);
|
||||
}
|
||||
|
||||
void Log::outTitle( const char * str)
|
||||
{
|
||||
if (!str)
|
||||
return;
|
||||
|
||||
if (m_colored)
|
||||
SetColor(true,WHITE);
|
||||
|
||||
// not expected utf8 and then send as-is
|
||||
printf("%s", str);
|
||||
|
||||
if (m_colored)
|
||||
ResetColor(true);
|
||||
|
||||
printf("\n");
|
||||
if (logfile)
|
||||
{
|
||||
fprintf(logfile, "%s", str);
|
||||
fprintf(logfile, "\n" );
|
||||
fflush(logfile);
|
||||
}
|
||||
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
void Log::outString()
|
||||
{
|
||||
if (m_includeTime)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue