mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 10:37:02 +00:00
[8793] Don't do operations through singleton if already in singleton context.
* Also, some minor things: - Remove duplicate sWorldLog define. - Add sRealmList macro for RealmList::Instance(). - Use sLog macro in scripting log functions.
This commit is contained in:
parent
146657885d
commit
b3f3ffa885
11 changed files with 32 additions and 32 deletions
|
|
@ -767,7 +767,7 @@ void outstring_log(const char * str, ...)
|
|||
vsnprintf(buf,256, str, ap);
|
||||
va_end(ap);
|
||||
|
||||
MaNGOS::Singleton<Log>::Instance().outString(buf);
|
||||
sLog.outString(buf);
|
||||
}
|
||||
|
||||
void detail_log(const char * str, ...)
|
||||
|
|
@ -781,7 +781,7 @@ void detail_log(const char * str, ...)
|
|||
vsnprintf(buf,256, str, ap);
|
||||
va_end(ap);
|
||||
|
||||
MaNGOS::Singleton<Log>::Instance().outDetail(buf);
|
||||
sLog.outDetail(buf);
|
||||
}
|
||||
|
||||
void debug_log(const char * str, ...)
|
||||
|
|
@ -795,7 +795,7 @@ void debug_log(const char * str, ...)
|
|||
vsnprintf(buf,256, str, ap);
|
||||
va_end(ap);
|
||||
|
||||
MaNGOS::Singleton<Log>::Instance().outDebug(buf);
|
||||
sLog.outDebug(buf);
|
||||
}
|
||||
|
||||
void error_log(const char * str, ...)
|
||||
|
|
@ -809,7 +809,7 @@ void error_log(const char * str, ...)
|
|||
vsnprintf(buf,256, str, ap);
|
||||
va_end(ap);
|
||||
|
||||
MaNGOS::Singleton<Log>::Instance().outError(buf);
|
||||
sLog.outError(buf);
|
||||
}
|
||||
|
||||
void error_db_log(const char * str, ...)
|
||||
|
|
@ -823,5 +823,5 @@ void error_db_log(const char * str, ...)
|
|||
vsnprintf(buf,256, str, ap);
|
||||
va_end(ap);
|
||||
|
||||
MaNGOS::Singleton<Log>::Instance().outErrorDb(buf);
|
||||
sLog.outErrorDb(buf);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8792"
|
||||
#define REVISION_NR "8793"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue