]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3368: Unhandled exceptions are not logged (workaround)
authorStefan Fritsch <sf@sfritsch.de>
Sun, 9 Oct 2011 06:02:17 +0000 (00:02 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 9 Oct 2011 06:02:17 +0000 (00:02 -0600)
src/main.cc

index ea3995e563eaec592c111edefb5819fcf336addd..f18d218f9e4ae90dfaf6eac5f86e333472f3f1b5 100644 (file)
@@ -1176,9 +1176,11 @@ SquidMainSafe(int argc, char **argv)
         return SquidMain(argc, argv);
     } catch (const std::exception &e) {
         std::cerr << "dying from an unhandled exception: " << e.what() << std::endl;
+        debugs(1, DBG_CRITICAL, "FATAL: dying from an unhandled exception: " << e.what());
         throw;
     } catch (...) {
         std::cerr << "dying from an unhandled exception." << std::endl;
+        debugs(1, DBG_CRITICAL, "FATAL: dying from an unhandled exception.");
         throw;
     }
     return -1; // not reached