This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new b8577d3 JAMES-2813 Add a missing log upon Migration
b8577d3 is described below
commit b8577d3a453ea7ceda4f5a97a4c093562bd40642
Author: Benoit Tellier <[email protected]>
AuthorDate: Mon May 3 15:30:38 2021 +0700
JAMES-2813 Add a missing log upon Migration
Caused errors to be lost, making diagnostic harder
---
.../java/org/apache/james/backends/cassandra/migration/Migration.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/backends-common/cassandra/src/main/java/org/apache/james/backends/cassandra/migration/Migration.java
b/backends-common/cassandra/src/main/java/org/apache/james/backends/cassandra/migration/Migration.java
index 46556c5..4f37f0e 100644
---
a/backends-common/cassandra/src/main/java/org/apache/james/backends/cassandra/migration/Migration.java
+++
b/backends-common/cassandra/src/main/java/org/apache/james/backends/cassandra/migration/Migration.java
@@ -21,8 +21,11 @@ package org.apache.james.backends.cassandra.migration;
import org.apache.james.task.Task;
import org.apache.james.task.TaskType;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public interface Migration {
+ Logger LOGGER = LoggerFactory.getLogger(Migration.class);
void apply() throws InterruptedException;
@@ -45,6 +48,7 @@ public interface Migration {
this.apply();
return Task.Result.COMPLETED;
} catch (RuntimeException e) {
+ LOGGER.warn("Error running migration", e);
return Task.Result.PARTIAL;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]