Re: cocoon-showtime

2005-02-13 Thread Michael Wechner
Carsten Ziegeler wrote:

WDYT?
Yepp, it's not that much but anyway it can be saved. I just applied a 
patch.

thanks very much
Sorry for bothering once more, but re my question, wouldn't it make sense
to have a more standardized log message, e.g.
IPNUMBER - - [DATE] GET /lenya/default/live/css/page.css PROTOCOL - 
Processed by Cocoon-X in  milliseconds

?
I am aware that one could configure the servlet container accordingly, but
if someone turns on logging resp. the log level INFO it would certainly 
help re debugging.

Thanks
Michi

Thanks
Carsten


--
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com  http://lenya.apache.org
[EMAIL PROTECTED][EMAIL PROTECTED]


cocoon-showtime

2005-02-12 Thread Michael Wechner
I just learned that if one adds 

htttp://../cocoon/html?cocoon-showtime=true (or whatever)
then the Cocoon Servlet is adding the following line to the very end of the 
HTML, e.g.
pProcessed by Apache Cocoon 2.1.6 in 30 milliseconds./p
It seems to me that the method calculating this string should only be called if 
actually needed:
if (getLogger().isInfoEnabled()) {
  processTime(end - start)
and
if (show) 
  processTime(end - start)

because it saves some time within production envs, maybe just very little, 
but still...
WDYT?
Michi

--
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com  http://lenya.apache.org
[EMAIL PROTECTED][EMAIL PROTECTED]