You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2021/05/04 07:27:21 UTC
[james-project] branch master updated: JAMES-2813 Add a missing log
upon Migration
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 <bt...@linagora.com>
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: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org