r9493 - in helma-ng/trunk: apps/demo modules/helma
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: hannes
Date: 2009-01-29 11:34:54 +0100 (Thu, 29 Jan 2009)
New Revision: 9493
Modified:
helma-ng/trunk/apps/demo/actions.js
helma-ng/trunk/modules/helma/logging.js
Log:
Include flusing of the response object's debug buffer into the onResponse/onError handler of the helma.logging module.
Details at http://dev.helma.org/trac/helma/changeset/9493
Modified: helma-ng/trunk/apps/demo/actions.js
===================================================================
--- helma-ng/trunk/apps/demo/actions.js 2009-01-29 10:15:05 UTC (rev 9492)
+++ helma-ng/trunk/apps/demo/actions.js 2009-01-29 10:34:54 UTC (rev 9493)
@@ -7,7 +7,6 @@
res.render('skins/index.html', { title: 'Welcome to Helma NG' });
res.debug(req.cookies.toSource());
res.debug(req.params.toSource());
- res.flushDebug();
}
Modified: helma-ng/trunk/modules/helma/logging.js
===================================================================
--- helma-ng/trunk/modules/helma/logging.js 2009-01-29 10:15:05 UTC (rev 9492)
+++ helma-ng/trunk/modules/helma/logging.js 2009-01-29 10:34:54 UTC (rev 9493)
@@ -61,6 +61,9 @@
if (!responseLogEnabled || (res.status != 200 && res.status < 400)) {
return;
}
+ // flush stuff logged via res.debug()
+ res.flushDebug();
+
var cx = system.getRhinoContext();
var list = cx.getThreadLocal('responseLog');