diff options
author | worktycho <work.tycho@gmail.com> | 2015-05-04 10:07:03 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-05-04 10:07:03 +0200 |
commit | 6df0e877e86edeb7f9bf11e5db3c9adf530dcf58 (patch) | |
tree | b677be49368a6607b2716c8f0f39b3ff3d23534d | |
parent | Merge pull request #1936 from Seadragon91/master (diff) | |
download | cuberite-6df0e877e86edeb7f9bf11e5db3c9adf530dcf58.tar cuberite-6df0e877e86edeb7f9bf11e5db3c9adf530dcf58.tar.gz cuberite-6df0e877e86edeb7f9bf11e5db3c9adf530dcf58.tar.bz2 cuberite-6df0e877e86edeb7f9bf11e5db3c9adf530dcf58.tar.lz cuberite-6df0e877e86edeb7f9bf11e5db3c9adf530dcf58.tar.xz cuberite-6df0e877e86edeb7f9bf11e5db3c9adf530dcf58.tar.zst cuberite-6df0e877e86edeb7f9bf11e5db3c9adf530dcf58.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 2e7e107f7..1c34b8f61 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -12,6 +12,7 @@ #endif // _MSC_VER #include "OSSupport/NetworkSingleton.h" +#include "BuildInfo.h" @@ -78,6 +79,10 @@ void NonCtrlHandler(int a_Signal) std::signal(SIGSEGV, SIG_DFL); LOGERROR(" D: | MCServer has encountered an error and needs to close"); LOGERROR("Details | SIGSEGV: Segmentation fault"); + #ifdef BUILD_ID + LOGERROR("MCServer " BUILD_SERIES_NAME " build id: " BUILD_ID); + LOGERROR("from commit id: " BUILD_COMMIT_ID " built at: " BUILD_DATETIME); + #endif PrintStackTrace(); abort(); } @@ -89,6 +94,10 @@ void NonCtrlHandler(int a_Signal) std::signal(a_Signal, SIG_DFL); LOGERROR(" D: | MCServer has encountered an error and needs to close"); LOGERROR("Details | SIGABRT: Server self-terminated due to an internal fault"); + #ifdef BUILD_ID + LOGERROR("MCServer " BUILD_SERIES_NAME " build id: " BUILD_ID); + LOGERROR("from commit id: " BUILD_COMMIT_ID " built at: " BUILD_DATETIME); + #endif PrintStackTrace(); abort(); } |