[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28321#action_28321
]
Fabrizio Giustina commented on MAGNOLIA-3201:
---------------------------------------------
well, it's not actually for "debugging": this informations are added to the
error logs (usually only for error/fatal level and only in the mail appender
when enabled) and are particularly useful for production enviroments.
It's a totally different thing from the DumpsHeadersFilter which have to be
enabled explicitly and has a big performance overhead.
This doesn't hurt and doesn't add any performance overhead, so it's nice to
have it available as a default...
This is a sample error mail that can be obtained with this filter enabled:
{code}
===================================
Mywebsite author
Version: 1.0.5
Server: ucz99921
Url: http://author.website.it/thepage.html
Referer:
http://author.website.it/.magnolia/trees/website.html?mgnlCK=1273572473867
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100401
Ubuntu/9.10 (karmic) Firefox/3.5.9
Remote-Host: 195.43.170.198
Session Id: 72713AD331348DAAF20735B9C7A2A56D.author
Userid: john
Number of occurrences: 2
===================================
[node1] ERROR 07.05.2010 08:48:38
net.sourceforge.openutils.mgnlcriteria.advanced.impl.QueryExecutorHelper
QueryExecutorHelper.java(execute:108) - An error occurred while executing a
query. Xpath query was //website//*[( (@jcr:primaryType='mgnl:content') and (
jcr:contains(@title, '\(ai\:\)\(n\)\(uk\)') ) )] order by @jcr:score
descending. Exception message is Exception building query:
org.apache.lucene.queryParser.ParseException: Cannot parse
'\(ai\:\\)\(n\)\(uk\)': Encountered " ")" ") "" at line 1, column 8.
Was expecting one of:
<EOF>
<AND> ...
<OR> ...
<NOT> ...
"+" ...
"-" ...
"(" ...
"*" ...
"^" ...
<QUOTED> ...
<TERM> ...
<FUZZY_SLOP> ...
<PREFIXTERM> ...
<WILDTERM> ...
"[" ...
"{" ...
<NUMBER> ...
===================================
{code}
> Additional info added to log4j MDC for easier debugging
> -------------------------------------------------------
>
> Key: MAGNOLIA-3201
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3201
> Project: Magnolia
> Issue Type: Improvement
> Affects Versions: 4.3.1
> Reporter: Fabrizio Giustina
> Assignee: Fabrizio Giustina
> Priority: Trivial
> Fix For: 4.3.x
>
>
> ContextFilter actually sets request uri and userid to log4j MDC to simplify
> debugging, we could add a few more useful items like referral, session id and
> user agent
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------