From 37bf72ac7d90fe733e72ee0c876d639a39e57d8d Mon Sep 17 00:00:00 2001 From: randomdan Date: Sun, 18 Aug 2013 12:07:28 +0000 Subject: Add logs for non-usercheck exceptions when processing CGI stages --- project2/cgi/cgiAppEngine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/project2/cgi/cgiAppEngine.cpp b/project2/cgi/cgiAppEngine.cpp index bd25172..239170f 100644 --- a/project2/cgi/cgiAppEngine.cpp +++ b/project2/cgi/cgiAppEngine.cpp @@ -138,6 +138,7 @@ CgiApplicationEngine::process(std::ostream & IO, CgiRequestContext * crc) const currentStage = NextStage(new PresentStage(ScriptReader::resolveScript(presentRoot, cf.failedCheck->present(crc), false), crc)); } catch (const ScriptNotFound & nf) { + Logger()->messagebf(LOG_WARNING, "Script not found processing stage: %s", nf.what()); if (notFoundPresent.empty() || triedNotFound) { currentStage = NextStage(new DefaultNotFoundStage(nf)); } @@ -147,6 +148,7 @@ CgiApplicationEngine::process(std::ostream & IO, CgiRequestContext * crc) const } } catch (const std::exception & ex) { + Logger()->messagebf(LOG_WARNING, "Error processing stage: %s", ex.what()); if (onErrorPresent.empty() || triedOnError) { currentStage = NextStage(new DefaultErrorStage(ex, crc)); } -- cgit v1.2.3