]> git.mxchange.org Git - flightgear.git/commitdiff
Fix typo, add Hudson Build-ID to reports.
authorJames Turner <zakalawe@mac.com>
Mon, 20 Jan 2014 21:54:06 +0000 (21:54 +0000)
committerJames Turner <zakalawe@mac.com>
Mon, 20 Jan 2014 21:54:06 +0000 (21:54 +0000)
src/Main/bootstrap.cxx
src/Main/main.cxx

index 96b053b61b2830afe4127bcfe6a767e3992e63d0..da45058d946275152913d10734bcd0cf9b1f2b0b 100644 (file)
@@ -201,7 +201,7 @@ int main ( int argc, char **argv )
        // 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 
@@ -212,7 +212,10 @@ int main ( int argc, char **argv )
        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
 
index 2062a3796d74afb9a03b69cdfa8e9b252bcf380d..2d3c6485ad340ea39a4a8a05b41d66b89f4a339e 100644 (file)
@@ -60,6 +60,7 @@
 #include <Viewer/renderer.hxx>
 #include <Viewer/WindowSystemAdapter.hxx>
 #include <Navaids/NavDataCache.hxx>
+#include <Include/version.h>
 
 #include "fg_commands.hxx"
 #include "fg_io.hxx"
@@ -346,6 +347,7 @@ static void logToFile()
 
 #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
 }
 
@@ -373,7 +375,9 @@ int fgMainInit( int argc, char **argv ) {
 #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