aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Logging
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2014-07-20 03:06:03 +0200
committerVincent-Michael <Vincent_Michael@gmx.de>2014-07-20 03:06:03 +0200
commite68d3b0937e205c94c17d7cb1a53194b6d169fe8 (patch)
tree326d69976375006fe244df6e858bd20e83fcae90 /src/server/shared/Logging
parentabe8dd7abf70b3589ad0cbba19f91bd4f743bf3e (diff)
parent0531f52008cfc4ecb28c0b3cd67504e06452ab75 (diff)
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts: src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_elder_nadox.cpp src/server/scripts/Northrend/zone_dalaran.cpp src/server/shared/Cryptography/Authentication/WorldPacketCrypt.cpp
Diffstat (limited to 'src/server/shared/Logging')
-rw-r--r--src/server/shared/Logging/AppenderConsole.cpp6
-rw-r--r--src/server/shared/Logging/Log.h8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/server/shared/Logging/AppenderConsole.cpp b/src/server/shared/Logging/AppenderConsole.cpp
index 8102d3b6021..20923162906 100644
--- a/src/server/shared/Logging/AppenderConsole.cpp
+++ b/src/server/shared/Logging/AppenderConsole.cpp
@@ -16,14 +16,14 @@
*/
#include <sstream>
-#if PLATFORM == PLATFORM_WINDOWS
- #include <windows.h>
-#endif
#include "AppenderConsole.h"
#include "Config.h"
#include "Util.h"
+#if PLATFORM == PLATFORM_WINDOWS
+ #include <Windows.h>
+#endif
AppenderConsole::AppenderConsole(uint8 id, std::string const& name, LogLevel level, AppenderFlags flags):
Appender(id, name, APPENDER_CONSOLE, level, flags), _colored(false)
diff --git a/src/server/shared/Logging/Log.h b/src/server/shared/Logging/Log.h
index e739c9eaf4e..8ae8db5bf5f 100644
--- a/src/server/shared/Logging/Log.h
+++ b/src/server/shared/Logging/Log.h
@@ -43,15 +43,15 @@ class Log
static Log* instance(boost::asio::io_service* ioService = nullptr)
{
- static Log* instance = new Log();
+ static Log instance;
if (ioService != nullptr)
{
- instance->_ioService = ioService;
- instance->_strand = new boost::asio::strand(*ioService);
+ instance._ioService = ioService;
+ instance._strand = new boost::asio::strand(*ioService);
}
- return instance;
+ return &instance;
}
void LoadFromConfig();