aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www/Utils.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/Utils.java')
-rw-r--r--juick-www/src/main/java/com/juick/www/Utils.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/Utils.java b/juick-www/src/main/java/com/juick/www/Utils.java
index ccb7cdd2..240b6be4 100644
--- a/juick-www/src/main/java/com/juick/www/Utils.java
+++ b/juick-www/src/main/java/com/juick/www/Utils.java
@@ -28,6 +28,8 @@ import java.io.*;
import java.net.URL;
import java.net.URLConnection;
import java.util.UUID;
+import java.util.logging.Level;
+import java.util.logging.Logger;
/**
*
@@ -35,6 +37,8 @@ import java.util.UUID;
*/
public class Utils {
+ private static final Logger logger = Logger.getLogger(Utils.class.getName());
+
public static String getCookie(HttpServletRequest request, String name) {
Cookie cookies[] = request.getCookies();
if (cookies != null) {
@@ -157,7 +161,7 @@ public class Utils {
in.close();
return b.toString();
} catch (Exception e) {
- System.err.println("fetchURL: "+e.toString());
+ logger.log(Level.SEVERE, "fetchURL" , e);
return null;
}
}