You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2013/06/04 17:33:38 UTC
svn commit: r1489476 -
/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/log/LogView.groovy
Author: jacopoc
Date: Tue Jun 4 15:33:30 2013
New Revision: 1489476
URL: http://svn.apache.org/r1489476
Log:
Some cleanups for my last commit.
Modified:
ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/log/LogView.groovy
Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/log/LogView.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/log/LogView.groovy?rev=1489476&r1=1489475&r2=1489476&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/log/LogView.groovy (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/log/LogView.groovy Tue Jun 4 15:33:30 2013
@@ -23,15 +23,14 @@ List logLines = [];
try {
File logFile = FileUtil.getFile(logFileName);
logFile.eachLine { line ->
- String ln = line;
type = '';
- if (ln.contains(":INFO ] ")) {
+ if (line.contains(":INFO ] ")) {
type = 'INFO';
- } else if (ln.contains(":WARN ] ")) {
+ } else if (line.contains(":WARN ] ")) {
type = 'WARN';
- } else if (ln.contains(":ERROR] ")) {
+ } else if (line.contains(":ERROR] ")) {
type = 'ERROR';
- } else if (ln.contains(":DEBUG] ")) {
+ } else if (line.contains(":DEBUG] ")) {
type = 'DEBUG';
}
logLines.add([type: type, line:line]);