From 98733fc105e0eb907fe23658f2e6a274385343f6 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 12 Dec 2013 14:38:34 +0100 Subject: [PATCH] Add timestamp to crash dumps. Fixes #5315 --- lib/base/application.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/base/application.cpp b/lib/base/application.cpp index a18e35aa1..a3ee1c532 100644 --- a/lib/base/application.cpp +++ b/lib/base/application.cpp @@ -403,6 +403,7 @@ void Application::SigAbrtHandler(int) #endif /* _WIN32 */ std::cerr << "Caught SIGABRT." << std::endl + << "Current time: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", Utility::GetTime()) << std::endl << std::endl; DisplayVersionMessage(); @@ -445,6 +446,7 @@ void Application::ExceptionHandler(void) #endif /* _WIN32 */ std::cerr << "Caught unhandled exception." << std::endl + << "Current time: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", Utility::GetTime()) << std::endl << std::endl; DisplayVersionMessage(); @@ -468,6 +470,7 @@ LONG CALLBACK Application::SEHUnhandledExceptionFilter(PEXCEPTION_POINTERS exi) DisplayVersionMessage(); std::cerr << "Caught unhandled SEH exception." << std::endl + << "Current time: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", Utility::GetTime()) << std::endl << std::endl; StackTrace trace(exi);