// Restart the app on crash
info.dwFlags |= CR_INST_SEND_QUEUED_REPORTS;
- // autoamticallty install handlers for all threads
+ // automatically install handlers for all threads
info.dwFlags |= CR_INST_AUTO_THREAD_HANDLERS;
// Define the Privacy Policy URL
if(nResult!=0) {
std::cerr << "failed to install crash reporting engine" << std::endl;
} else {
- crAddProperty("hudson-build-id", HUDSON_BUILD_ID);
+ crAddProperty("hudson-build-id", HUDSON_BUILD_ID);
+ char buf[16];
+ ::snprintf(buf, 16, "%d", HUDSON_BUILD_NUMBER);
+ crAddProperty("hudson-build-number", buf);
}
#endif
#include <Viewer/renderer.hxx>
#include <Viewer/WindowSystemAdapter.hxx>
#include <Navaids/NavDataCache.hxx>
+#include <Include/version.h>
#include "fg_commands.hxx"
#include "fg_io.hxx"
#if defined(HAVE_CRASHRPT)
crAddFile2(logPath.c_str(), NULL, "FlightGear Log File", CR_AF_MAKE_FILE_COPY);
+ SG_LOG( SG_GENERAL, SG_INFO, "CrashRpt enabled");
#endif
}
#endif
SG_LOG( SG_GENERAL, SG_INFO, "FlightGear: Version "
<< version );
- SG_LOG( SG_GENERAL, SG_INFO, "Built with " << SG_COMPILER_STR << std::endl );
+ SG_LOG( SG_GENERAL, SG_INFO, "Built with " << SG_COMPILER_STR);
+ SG_LOG( SG_GENERAL, SG_INFO, "Jenkins number/ID " << HUDSON_BUILD_NUMBER << ":"
+ << HUDSON_BUILD_ID);
// Allocate global data structures. This needs to happen before
// we parse command line options