From: Stefan Fritsch Date: Sun, 9 Oct 2011 06:02:17 +0000 (-0600) Subject: Bug 3368: Unhandled exceptions are not logged (workaround) X-Git-Tag: SQUID_3_1_16~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51d61a86b334618ba00fc8516b2618cbcd651335;p=thirdparty%2Fsquid.git Bug 3368: Unhandled exceptions are not logged (workaround) --- diff --git a/src/main.cc b/src/main.cc index ea3995e563..f18d218f9e 100644 --- a/src/main.cc +++ b/src/main.cc @@ -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