This is an automated email from the ASF dual-hosted git repository.
bharat pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 23034fb Hdds 3772. Add LOG to S3ErrorTable for easier problem
locating. (#1054)
23034fb is described below
commit 23034fbda62d7ee5abe0f664b58248cba6e1468e
Author: Sammi Chen <[email protected]>
AuthorDate: Sun Jun 14 15:56:28 2020 +0800
Hdds 3772. Add LOG to S3ErrorTable for easier problem locating. (#1054)
---
.../java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
index ef3edd8..fedc1ba 100644
---
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
+++
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
@@ -17,6 +17,8 @@
*/
package org.apache.hadoop.ozone.s3.exception;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import static java.net.HttpURLConnection.HTTP_BAD_REQUEST;
import static java.net.HttpURLConnection.HTTP_CONFLICT;
@@ -29,6 +31,9 @@ import static
org.apache.hadoop.ozone.s3.util.S3Consts.RANGE_NOT_SATISFIABLE;
*/
public final class S3ErrorTable {
+ private final static Logger LOG = LoggerFactory.getLogger(
+ S3ErrorTable.class);
+
private S3ErrorTable() {
//No one should construct this object.
}
@@ -106,6 +111,7 @@ public final class S3ErrorTable {
OS3Exception err = new OS3Exception(e.getCode(), e.getErrorMessage(),
e.getHttpCode());
err.setResource(resource);
+ LOG.error(err.toXml());
return err;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]