mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
Fix double construction of EQEmuLogSys
This commit is contained in:
parent
855f7ac2a0
commit
3c53d907da
@ -41,14 +41,13 @@ namespace ConsoleColor {
|
||||
|
||||
#endif
|
||||
|
||||
#include "eqemu_logsys.h"
|
||||
#include "debug.h"
|
||||
#include "misc_functions.h"
|
||||
#include "platform.h"
|
||||
#include "eqemu_logsys.h"
|
||||
#include "string_util.h"
|
||||
|
||||
EQEmuLogSys backport_log_sys;
|
||||
|
||||
#ifndef va_copy
|
||||
#define va_copy(d,s) ((d) = (s))
|
||||
#endif
|
||||
@ -165,7 +164,7 @@ bool EQEmuLog::write(LogIDs id, const char *fmt, ...)
|
||||
va_list argptr, tmpargptr;
|
||||
va_start(argptr, fmt);
|
||||
|
||||
backport_log_sys.Log(id, vStringFormat(fmt, argptr).c_str());
|
||||
logger.Log(id, vStringFormat(fmt, argptr).c_str());
|
||||
|
||||
if (logCallbackFmt[id]) {
|
||||
msgCallbackFmt p = logCallbackFmt[id];
|
||||
|
||||
@ -96,6 +96,7 @@ static Console::Color LogColors[EQEmuLogSys::MaxLogID] = {
|
||||
|
||||
|
||||
EQEmuLogSys::EQEmuLogSys(){
|
||||
std::cout << "I AM CONSTRUCTING!!!! LUL " << std::endl;
|
||||
}
|
||||
|
||||
EQEmuLogSys::~EQEmuLogSys(){
|
||||
|
||||
@ -55,7 +55,6 @@ public:
|
||||
void SetCurrentTimeStamp(char* time_stamp);
|
||||
void StartZoneLogs(const std::string log_name);
|
||||
|
||||
|
||||
private:
|
||||
bool zone_general_init = false;
|
||||
|
||||
|
||||
@ -97,14 +97,13 @@ LoginServerList loginserverlist;
|
||||
EQWHTTPServer http_server;
|
||||
UCSConnection UCSLink;
|
||||
QueryServConnection QSLink;
|
||||
LauncherList launcher_list;
|
||||
LauncherList launcher_list;
|
||||
AdventureManager adventure_manager;
|
||||
EQEmu::Random emu_random;
|
||||
volatile bool RunLoops = true;
|
||||
uint32 numclients = 0;
|
||||
uint32 numzones = 0;
|
||||
bool holdzones = false;
|
||||
EQEmuLogSys logger;
|
||||
|
||||
extern ConsoleList console_list;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user