diff options
-rw-r--r-- | project2/cgi/cgiAppEngine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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)); } |