mirror of https://github.com/apache/lucene.git
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:
parent
a8b994d37d
commit
096eef9cde
|
@ -44,6 +44,9 @@ Optimizations
|
||||||
Bug Fixes
|
Bug Fixes
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
* SOLR-3560: Handle different types of Exception Messages for Logging UI
|
||||||
|
(steffkes)
|
||||||
|
|
||||||
Other Changes
|
Other Changes
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
|
|
@ -317,6 +317,18 @@ var load_logging_viewer = function()
|
||||||
for( var i = 0; i < docs_count; i++ )
|
for( var i = 0; i < docs_count; i++ )
|
||||||
{
|
{
|
||||||
var doc = docs[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 );
|
var has_trace = 'undefined' !== typeof( doc.trace );
|
||||||
|
|
||||||
doc.logger = '<abbr title="' + doc.logger.esc() + '">' + doc.logger.split( '.' ).pop().esc() + '</abbr>';
|
doc.logger = '<abbr title="' + doc.logger.esc() + '">' + doc.logger.split( '.' ).pop().esc() + '</abbr>';
|
||||||
|
|
Loading…
Reference in New Issue