SOLR-3560: Handle different types of Exception Messages for Logging UI

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1389981 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Matheis 2012-09-25 16:47:41 +00:00
parent a8b994d37d
commit 096eef9cde
2 changed files with 15 additions and 0 deletions

View File

@ -44,6 +44,9 @@ Optimizations
Bug Fixes
----------------------
* SOLR-3560: Handle different types of Exception Messages for Logging UI
(steffkes)
Other Changes
----------------------

View File

@ -317,6 +317,18 @@ var load_logging_viewer = function()
for( var i = 0; i < docs_count; i++ )
{
var doc = docs[i];
if( !doc.trace )
{
var lines = doc.message.split( "\n" );
if( 1 < lines.length )
{
doc.message = lines[0];
doc.trace = doc.message;
delete lines;
}
}
var has_trace = 'undefined' !== typeof( doc.trace );
doc.logger = '<abbr title="' + doc.logger.esc() + '">' + doc.logger.split( '.' ).pop().esc() + '</abbr>';