[
https://issues.apache.org/jira/browse/SOLR-3560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467605#comment-13467605
]
Stefan Matheis (steffkes) commented on SOLR-3560:
-------------------------------------------------
Committed revision 1392825. lucene_solr_4_0
> Handle Logging Events in UI
> ---------------------------
>
> Key: SOLR-3560
> URL: https://issues.apache.org/jira/browse/SOLR-3560
> Project: Solr
> Issue Type: Improvement
> Components: web gui
> Reporter: Stefan Matheis (steffkes)
> Assignee: Stefan Matheis (steffkes)
> Priority: Minor
> Fix For: 4.1
>
> Attachments: SOLR-3560.patch
>
>
> As follow up on SOLR-3367, we should try to handle all "type" of Exceptions -
> the good ones as well as the bad ones:
> {code}throw new RuntimeException( "error "+cause );{code}
> {code}{
> time: "2012-05-16T13:26:10.722Z",
> level: "SEVERE",
> logger: "org.apache.solr.core.SolrCore",
> message: "org.apache.solr.common.SolrException: Can not find:
> schema.not [/opt/solr-trunk/solr/example/solr/./conf/schema.not]
> at
> org.apache.solr.handler.admin.ShowFileRequestHandler.showFromFileSystem(ShowFileRequestHandler.java:229)
> at
> org.apache.solr.handler.admin.ShowFileRequestHandler.handleRequestBody(ShowFileRequestHandler.java:122)
> ..."
> }{code}
> and
> {code}throw new RuntimeException( "error message", cause );{code}
> {code}{
> time: "2012-05-16T13:25:03.679Z",
> level: "SEVERE",
> logger: "org.apache.solr.handler.admin.LoggingHandler",
> message: "error (with exception)",
> trace: "java.lang.RuntimeException: test
> at
> org.apache.solr.handler.admin.LoggingHandler.handleRequestBody(LoggingHandler.java:75)
> at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
> ..."
> }{code}
> First Idea would be, to check for an existing {{trace}}-Index .. if the
> record has none, we expect the whole Output to be stored in {{message}} - so
> we split on the first Line-break, take the former part as new {{message}} and
> use the latter as {{trace}}.
> If that will not work (at least for specific cases) and you already know
> about .. please speak up :)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]