diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-09-05 14:41:42 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-09-05 14:41:42 +0200 |
commit | 29808c61c93c48cce89605a0dca987f4f3183e8f (patch) | |
tree | 21067f7c4de7ec4fe0cdce834654962d7ed4c390 | |
parent | Streamline startup sequence (diff) | |
download | cuberite-29808c61c93c48cce89605a0dca987f4f3183e8f.tar cuberite-29808c61c93c48cce89605a0dca987f4f3183e8f.tar.gz cuberite-29808c61c93c48cce89605a0dca987f4f3183e8f.tar.bz2 cuberite-29808c61c93c48cce89605a0dca987f4f3183e8f.tar.lz cuberite-29808c61c93c48cce89605a0dca987f4f3183e8f.tar.xz cuberite-29808c61c93c48cce89605a0dca987f4f3183e8f.tar.zst cuberite-29808c61c93c48cce89605a0dca987f4f3183e8f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4a9f22f7d..e0ce68a8c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -51,14 +51,16 @@ static void NonCtrlHandler(int a_Signal) { PrintStackTrace(); - LOGERROR("Failure report: \n\n" - " :( | Cuberite has encountered an error and needs to close\n" - " | SIGSEGV: Segmentation fault\n" - " |\n" + LOGERROR( + "Failure report: \n\n" + " :( | Cuberite has encountered an error and needs to close\n" + " | SIGSEGV: Segmentation fault\n" + " |\n" #ifdef BUILD_ID - " | Cuberite " BUILD_SERIES_NAME " (id: " BUILD_ID ")\n" - " | from commit " BUILD_COMMIT_ID "\n"); + " | Cuberite " BUILD_SERIES_NAME " (id: " BUILD_ID ")\n" + " | from commit " BUILD_COMMIT_ID "\n" #endif + ); std::signal(SIGSEGV, SIG_DFL); return; @@ -70,14 +72,16 @@ static void NonCtrlHandler(int a_Signal) { PrintStackTrace(); - LOGERROR("Failure report: \n\n" - " :( | Cuberite has encountered an error and needs to close\n" - " | SIGABRT: Server self-terminated due to an internal fault\n" - " |\n" + LOGERROR( + "Failure report: \n\n" + " :( | Cuberite has encountered an error and needs to close\n" + " | SIGABRT: Server self-terminated due to an internal fault\n" + " |\n" #ifdef BUILD_ID - " | Cuberite " BUILD_SERIES_NAME " (id: " BUILD_ID ")\n" - " | from commit " BUILD_COMMIT_ID "\n"); + " | Cuberite " BUILD_SERIES_NAME " (id: " BUILD_ID ")\n" + " | from commit " BUILD_COMMIT_ID "\n" #endif + ); std::signal(SIGSEGV, SIG_DFL); return; |