SOLR-5112: Show full message in Admin UI Logging View

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1517769 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Matheis 2013-08-27 09:49:21 +00:00
parent 340d8c4071
commit b755bef24f
2 changed files with 4 additions and 8 deletions

View File

@ -152,6 +152,9 @@ Bug Fixes
* SOLR-4817 Solr should not fall back to the back compat built in solr.xml in SolrCloud * SOLR-4817 Solr should not fall back to the back compat built in solr.xml in SolrCloud
mode (Erick Erickson) mode (Erick Erickson)
* SOLR-5112: Show full message in Admin UI Logging View (Matthew Keeney via
steffkes)
Optimizations Optimizations
---------------------- ----------------------

View File

@ -334,8 +334,8 @@ var load_logging_viewer = function()
var lines = doc.message.split( "\n" ); var lines = doc.message.split( "\n" );
if( 1 < lines.length ) if( 1 < lines.length )
{ {
doc.message = lines[0];
doc.trace = doc.message; doc.trace = doc.message;
doc.message = lines[0];
delete lines; delete lines;
} }
} }
@ -360,14 +360,7 @@ var load_logging_viewer = function()
if( has_trace ) if( has_trace )
{ {
content += '<tr class="trace">' + "\n"; content += '<tr class="trace">' + "\n";
// (1) with colspan
content += '<td colspan="4"><pre>' + doc.trace.esc() + '</pre></td>' + "\n"; content += '<td colspan="4"><pre>' + doc.trace.esc() + '</pre></td>' + "\n";
// (2) without colspan
//content += '<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>';
//content += '<td>' + doc.trace.esc().replace( /\n/g, '<br>' ) + '</td>' + "\n";
content += '</tr>' + "\n"; content += '</tr>' + "\n";
} }