You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Stefan Matheis (steffkes) (JIRA)" <ji...@apache.org> on 2012/06/25 20:38:43 UTC

[jira] [Updated] (SOLR-3560) Handle Logging Events in UI

     [ https://issues.apache.org/jira/browse/SOLR-3560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Matheis (steffkes) updated SOLR-3560:
--------------------------------------------

    Attachment: SOLR-3560.patch

Thought this would be more complicated .. but after having a quick look, this works. 
                
> 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.0
>
>         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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org