Skip to content

Commit 89a12dc

Browse files
committed
refactor: improve log message
1 parent 0743ed3 commit 89a12dc

7 files changed

Lines changed: 7 additions & 7 deletions

src/main/java/ai/elimu/tasks/analytics/LetterSoundAssessmentEventImportScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public synchronized void execute() {
113113
}
114114
} catch (Exception e) {
115115
log.error("Error during data import:", e);
116-
DiscordHelper.postToChannel(Channel.ANALYTICS, "Error during data import: `" + e.getClass() + ": " + e.getMessage() + "`");
116+
DiscordHelper.postToChannel(Channel.ANALYTICS, "Error during import of letter-sound assessment events: `" + e.getClass() + ": " + e.getMessage() + "`");
117117
}
118118

119119
log.info("execute complete");

src/main/java/ai/elimu/tasks/analytics/LetterSoundLearningEventImportScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public synchronized void execute() {
113113
}
114114
} catch (Exception e) {
115115
log.error("Error during data import:", e);
116-
DiscordHelper.postToChannel(Channel.ANALYTICS, "Error during data import: `" + e.getClass() + ": " + e.getMessage() + "`");
116+
DiscordHelper.postToChannel(Channel.ANALYTICS, "Error during import of letter-sound learning events: `" + e.getClass() + ": " + e.getMessage() + "`");
117117
}
118118

119119
log.info("execute complete");

src/main/java/ai/elimu/tasks/analytics/NumberLearningEventImportScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public synchronized void execute() {
110110
}
111111
} catch (Exception e) {
112112
log.error("Error during data import:", e);
113-
DiscordHelper.postToChannel(Channel.ANALYTICS, "Error during data import: `" + e.getClass() + ": " + e.getMessage() + "`");
113+
DiscordHelper.postToChannel(Channel.ANALYTICS, "Error during import of number learning events: `" + e.getClass() + ": " + e.getMessage() + "`");
114114
}
115115

116116
log.info("execute complete");

src/main/java/ai/elimu/tasks/analytics/StoryBookLearningEventImportScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public synchronized void execute() {
113113
}
114114
} catch (Exception e) {
115115
log.error("Error during data import:", e);
116-
DiscordHelper.postToChannel(Channel.ANALYTICS, "Error during data import: `" + e.getClass() + ": " + e.getMessage() + "`");
116+
DiscordHelper.postToChannel(Channel.ANALYTICS, "Error during import of storybook learning events: `" + e.getClass() + ": " + e.getMessage() + "`");
117117
}
118118

119119
log.info("execute complete");

src/main/java/ai/elimu/tasks/analytics/VideoLearningEventImportScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public synchronized void execute() {
113113
}
114114
} catch (Exception e) {
115115
log.error("Error during data import:", e);
116-
DiscordHelper.postToChannel(Channel.ANALYTICS, "Error during data import: `" + e.getClass() + ": " + e.getMessage() + "`");
116+
DiscordHelper.postToChannel(Channel.ANALYTICS, "Error during import of video learning events: `" + e.getClass() + ": " + e.getMessage() + "`");
117117
}
118118

119119
log.info("execute complete");

src/main/java/ai/elimu/tasks/analytics/WordAssessmentEventImportScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public synchronized void execute() {
113113
}
114114
} catch (Exception e) {
115115
log.error("Error during data import:", e);
116-
DiscordHelper.postToChannel(Channel.ANALYTICS, "Error during data import: `" + e.getClass() + ": " + e.getMessage() + "`");
116+
DiscordHelper.postToChannel(Channel.ANALYTICS, "Error during import of word assessment events: `" + e.getClass() + ": " + e.getMessage() + "`");
117117
}
118118

119119
log.info("execute complete");

src/main/java/ai/elimu/tasks/analytics/WordLearningEventImportScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public synchronized void execute() {
113113
}
114114
} catch (Exception e) {
115115
log.error("Error during data import:", e);
116-
DiscordHelper.postToChannel(Channel.ANALYTICS, "Error during data import: `" + e.getClass() + ": " + e.getMessage() + "`");
116+
DiscordHelper.postToChannel(Channel.ANALYTICS, "Error during import of word learning events: `" + e.getClass() + ": " + e.getMessage() + "`");
117117
}
118118

119119
log.info("execute complete");

0 commit comments

Comments
 (0)