|
From: <tre...@us...> - 2007-09-07 00:27:09
|
Revision: 378
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=378&view=rev
Author: trevorolio
Date: 2007-09-06 17:27:11 -0700 (Thu, 06 Sep 2007)
Log Message:
-----------
Fixed a bug in SpaceScriptEngine which caused a silent ECMA script failue.
Consolidated some of the login cookie script functionality.
Changed the REST api permissions on a thing's service resource.
Modified Paths:
--------------
maven/trunk/ogoglio-common/src/main/java/com/ogoglio/util/Log.java
Modified: maven/trunk/ogoglio-common/src/main/java/com/ogoglio/util/Log.java
===================================================================
--- maven/trunk/ogoglio-common/src/main/java/com/ogoglio/util/Log.java 2007-09-06 19:05:00 UTC (rev 377)
+++ maven/trunk/ogoglio-common/src/main/java/com/ogoglio/util/Log.java 2007-09-07 00:27:11 UTC (rev 378)
@@ -23,6 +23,14 @@
public void warn(Object msg) {
System.err.println(msg);
}
+
+ public void info(Object msg, Throwable t) {
+ System.err.println(msg + ": " + t);
+ }
+
+ public void error(Object msg, Throwable t) {
+ System.err.println(msg + ": " + t);
+ }
}
static Logger log = new Logger();
@@ -36,7 +44,7 @@
}
public static void info(Object msg, Throwable t) {
- log.info(msg);
+ log.info(msg, t);
}
public static void warn(Object msg) {
@@ -48,7 +56,7 @@
}
public static void error(Object msg, Throwable t) {
- log.error(msg);
+ log.error(msg, t);
}
public static void trace(Object msg) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|