changeset 35:7a01a464a83b

More warning log output in POST case in REST interface of artifact. artifacts/trunk@89 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 15 Sep 2009 10:41:19 +0000
parents 9935e1c928de
children f7d2cd59a0d5
files Changelog artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java
diffstat 2 files changed, 20 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/Changelog	Tue Sep 15 09:43:57 2009 +0000
+++ b/Changelog	Tue Sep 15 10:41:19 2009 +0000
@@ -1,18 +1,24 @@
-2009-09-15  Tim Englich  <tim.englich@intevation.de>
+2009-09-15	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
-    * src/main/java/de/intevation/artifactdatabase/Backend.java: 
-      Bug Fixed: Comparation for outdated Artifacts was Wrong.
-    * src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java (represent): 
-      Warn-Logging Integrated for Exception analysys.
-      
-2009-09-14  Tim Englich  <tim.englich@intevation.de>
+	* artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java:
+	More warning log output in POST case.
 
-    * src/main/java/de/intevation/artifacts/ArtifactFactory.java Edited:
-      Make Objects Serializable 
+2009-09-15	Tim Englich	<tim.englich@intevation.de>
 
-    * src/main/resources/sql/org-h2-driver.properties: 
-      Bug Fixed in SQL-Query
-      
+	* src/main/java/de/intevation/artifactdatabase/Backend.java: 
+	Bug Fixed: Comparation for outdated Artifacts was Wrong.
+
+	* src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java (represent):
+	Warn-Logging Integrated for Exception analysys.
+
+2009-09-14	Tim Englich	<tim.englich@intevation.de>
+
+	* src/main/java/de/intevation/artifacts/ArtifactFactory.java Edited:
+	Make Objects Serializable 
+
+	* src/main/resources/sql/org-h2-driver.properties: 
+	Bug Fixed in SQL-Query
+
 2009-09-13	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	Refactored the persistent handling of the artifacts in the 
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java	Tue Sep 15 09:43:57 2009 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java	Tue Sep 15 10:41:19 2009 +0000
@@ -67,7 +67,7 @@
                 db.describe(identifier));
         }
         catch (ArtifactDatabaseException adbe) {
-            logger.warn(adbe,adbe);
+            logger.warn(adbe.getLocalizedMessage(), adbe);
             Response response = getResponse();
             response.setStatus(
                 Status.CLIENT_ERROR_NOT_FOUND, adbe.getMessage());
@@ -95,6 +95,7 @@
             }
         }
         catch (ArtifactDatabaseException adbe) {
+            logger.warn(adbe.getLocalizedMessage(), adbe);
             Response response = getResponse();
             response.setStatus(
                 Status.CLIENT_ERROR_BAD_REQUEST, adbe.getMessage());

http://dive4elements.wald.intevation.org