Author: thomas.heute(a)jboss.com
Date: 2007-11-29 20:31:05 -0500 (Thu, 29 Nov 2007)
New Revision: 9212
Modified:
branches/JBoss_Portal_Branch_2_6/widget/src/main/org/jboss/portal/widget/google/provider/GGQueryResultBuilder.java
branches/JBoss_Portal_Branch_2_6/widget/src/main/org/jboss/portal/widget/google/provider/GGWidgetInfoBuilder.java
Log:
Remove System.out.println statements
Modified:
branches/JBoss_Portal_Branch_2_6/widget/src/main/org/jboss/portal/widget/google/provider/GGQueryResultBuilder.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/widget/src/main/org/jboss/portal/widget/google/provider/GGQueryResultBuilder.java 2007-11-30
01:24:27 UTC (rev 9211)
+++
branches/JBoss_Portal_Branch_2_6/widget/src/main/org/jboss/portal/widget/google/provider/GGQueryResultBuilder.java 2007-11-30
01:31:05 UTC (rev 9212)
@@ -134,7 +134,11 @@
GGQueryResultEntry entry = new GGQueryResultEntry(md);
entries.add(entry);
}
- System.out.println("fetchting directory took: " +
NumberFormat.getInstance().format((System.currentTimeMillis() - millis) / 1000.0));
+ if (log.isDebugEnabled())
+ {
+ log.debug("Fetchting directory took: " +
NumberFormat.getInstance().format((System.currentTimeMillis() - millis) / 1000.0));
+ }
+
//
return new GGQueryResult(entries);
}
Modified:
branches/JBoss_Portal_Branch_2_6/widget/src/main/org/jboss/portal/widget/google/provider/GGWidgetInfoBuilder.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/widget/src/main/org/jboss/portal/widget/google/provider/GGWidgetInfoBuilder.java 2007-11-30
01:24:27 UTC (rev 9211)
+++
branches/JBoss_Portal_Branch_2_6/widget/src/main/org/jboss/portal/widget/google/provider/GGWidgetInfoBuilder.java 2007-11-30
01:31:05 UTC (rev 9212)
@@ -66,6 +66,8 @@
*/
public class GGWidgetInfoBuilder
{
+ /** . */
+ private static final org.jboss.logging.Logger log =
org.jboss.logging.Logger.getLogger(GGWidgetInfoBuilder.class);
/** . */
private final URL url;
@@ -322,8 +324,11 @@
int width = (widthAttr != null && widthAttr.length() > 0) ?
Integer.parseInt(widthAttr) : 320;
int height = (heightAttr != null && heightAttr.length() > 0) ?
Integer.parseInt(heightAttr) : 200;
- System.out.println("fetchting & building gadget: " +
url.toString() + " took: "
+ if (log.isDebugEnabled())
+ {
+ log.debug("fetchting & building gadget: " + url.toString() +
" took: "
+ NumberFormat.getInstance().format((System.currentTimeMillis() - millis)
/ 1000.0));
+ }
return new GGWidgetInfo(title, directoryTitle, description, width, height,
prefsInfo);
}
else
Show replies by date