You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by st...@apache.org on 2012/09/25 18:49:12 UTC
svn commit: r1389982 - in /lucene/dev/branches/branch_4x/solr: CHANGES.txt
webapp/web/js/scripts/logging.js
Author: steffkes
Date: Tue Sep 25 16:49:12 2012
New Revision: 1389982
URL: http://svn.apache.org/viewvc?rev=1389982&view=rev
Log:
SOLR-3560: Handle different types of Exception Messages for Logging UI (merge r1389981)
Modified:
lucene/dev/branches/branch_4x/solr/CHANGES.txt (contents, props changed)
lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/logging.js
Modified: lucene/dev/branches/branch_4x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/CHANGES.txt?rev=1389982&r1=1389981&r2=1389982&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_4x/solr/CHANGES.txt Tue Sep 25 16:49:12 2012
@@ -40,6 +40,9 @@ Optimizations
Bug Fixes
----------------------
+* SOLR-3560: Handle different types of Exception Messages for Logging UI
+ (steffkes)
+
Other Changes
----------------------
Modified: lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/logging.js
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/logging.js?rev=1389982&r1=1389981&r2=1389982&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/logging.js (original)
+++ lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/logging.js Tue Sep 25 16:49:12 2012
@@ -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>';