Skip to content

Commit 3c1f4a8

Browse files
committed
Update some logging on start up to not be so spammy.
1 parent 45a3c65 commit 3c1f4a8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/UpdateNotifiers.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ public static void register() {
6060
wasRegistered = true;
6161
Events.MISC_BUS.addListener((TaskScheduler.CollectTasksEvent event) -> {
6262
try {
63-
log.error("Debugging: Checking for Forge updates every 15 min...");
63+
log.info("Checking for Forge updates every 15 min...");
6464
event.addTask(new TaskScheduler.Task(new ForgeUpdateNotifier(), 0, 15, TimeUnit.MINUTES));
6565
} catch (Exception ex) {
66-
log.error("Unable to schedule job Forge Update Notifier", ex);
66+
log.warn("Unable to schedule job Forge Update Notifier", ex);
6767
ex.printStackTrace();
6868
}
69-
log.error("Debugging: Checking for Minecraft and Fabric updates every 15 min...");
69+
log.info("Checking for Minecraft, Quilt and Fabric updates every 15 min...");
7070
event.addTask(new TaskScheduler.Task(new MinecraftUpdateNotifier(), 0, 15, TimeUnit.MINUTES));
7171
event.addTask(new TaskScheduler.Task(new FabricApiUpdateNotifier(), 0, 15, TimeUnit.MINUTES));
7272
event.addTask(new TaskScheduler.Task(new QuiltUpdateNotifier(), 0, 15, TimeUnit.MINUTES));

src/core/java/com/mcmoddev/mmdbot/core/common/ScamDetector.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ public static boolean containsScam(final String text) {
121121
public static void onCollectTasks(final TaskScheduler.CollectTasksEvent event) {
122122
event.addTask(() -> {
123123
if (setupScamLinks()) {
124-
log.error("Successfully refreshed scam links");
124+
log.info("Successfully refreshed scam links");
125125
} else {
126-
log.error("Scam links could not be automatically refreshed");
126+
log.warn("Scam links could not be automatically refreshed");
127127
}
128128
}, 0, 14, TimeUnit.DAYS);
129129
}
130130

131131
public static boolean setupScamLinks() {
132-
log.debug("Setting up scam links! Receiving data from {}.", SCAM_LINKS_DATA_URL);
132+
log.info("Setting up scam links! Receiving data from {}.", SCAM_LINKS_DATA_URL);
133133
try (var is = new URL(SCAM_LINKS_DATA_URL).openStream()) {
134134
final String result = new String(is.readAllBytes(), StandardCharsets.UTF_8);
135135
SCAM_LINKS.clear();

0 commit comments

Comments
 (0)