aboutsummaryrefslogtreecommitdiff
path: root/src/common/Logging/Log.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-02-23 23:41:18 +0100
committerShauren <shauren.trinity@gmail.com>2016-03-12 23:49:56 +0100
commitc71987b1a1403fa20654cc24b37448ca807ff363 (patch)
treefe58acc88541a6050f91031e04acc8df3d021cad /src/common/Logging/Log.h
parent9fc5c4bc41b2738836ce99eb42ddbb88fb398884 (diff)
Core/Logging: Force synchronous logging after io_service shutdown - fixes logging on worldserver shutdown
(cherry picked from commit a0b2be6c1d0ae17ad8a17692d77f2020bbb9296e)
Diffstat (limited to 'src/common/Logging/Log.h')
-rw-r--r--src/common/Logging/Log.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/Logging/Log.h b/src/common/Logging/Log.h
index 6f9c5600775..062f14d525c 100644
--- a/src/common/Logging/Log.h
+++ b/src/common/Logging/Log.h
@@ -47,6 +47,7 @@ class Log
static Log* instance();
void Initialize(boost::asio::io_service* ioService);
+ void SetSynchronous(); // Not threadsafe - should only be called from main() after all threads are joined
void LoadFromConfig();
void Close();
bool ShouldLog(std::string const& type, LogLevel level) const;