r9586 - helma-ng/trunk/modules/helma

[email protected]
Newsgroups gmane.comp.java.helma.cvs
Message-ID <20090408112435.16FD13D0D6@mia>
Author: hannes
Date: 2009-04-08 13:24:35 +0200 (Wed, 08 Apr 2009)
New Revision: 9586

Modified:
   helma-ng/trunk/modules/helma/logging.js
Log:
Catch exception in log4j configureAndWatch() method as it is not supported on Google App Engine.

Details at http://dev.helma.org/trac/helma/changeset/9586

Modified: helma-ng/trunk/modules/helma/logging.js
===================================================================
--- helma-ng/trunk/modules/helma/logging.js	2009-04-08 11:24:33 UTC (rev 9585)
+++ helma-ng/trunk/modules/helma/logging.js	2009-04-08 11:24:35 UTC (rev 9586)
@@ -17,7 +17,11 @@
                        org.apache.log4j.PropertyConfigurator :
                        org.apache.log4j.xml.DOMConfigurator;
     configurator.configure(resource);
-    configurator.configureAndWatch(resource, 2000);
+    try {
+        configurator.configureAndWatch(resource, 2000);
+    } catch (e) {
+        print("Error watching log configuration file:", e);
+    }
     configured = true;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.