Skip to content

Commit 39f3f7f

Browse files
committed
reduce log level of common logs
1 parent fd5403c commit 39f3f7f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/net/discordjug/javabot/systems/help/HelpForumUpdater.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class HelpForumUpdater {
3838
@Scheduled(cron = "0 */10 * * * *") // Run every 10 minutes
3939
public void execute() {
4040
for (Guild guild : jda.getGuilds()) {
41-
log.info("Checking for inactive forum posts in {}", guild.getName());
41+
log.debug("Checking for inactive forum posts in {}", guild.getName());
4242
HelpConfig config = botConfig.get(guild).getHelpConfig();
4343
ForumChannel forum = config.getHelpForumChannel();
4444
if (forum != null) {

src/main/java/net/discordjug/javabot/systems/help/dao/HelpTransactionRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public HelpTransaction save(HelpTransaction transaction) throws DataAccessExcept
4747
"channel",transaction.getChannelId())
4848
);
4949
transaction.setId(key.longValue());
50-
log.info("Inserted new Help Transaction: {}", transaction);
50+
log.debug("Inserted new Help Transaction: {}", transaction);
5151
return transaction;
5252
}
5353

src/main/java/net/discordjug/javabot/tasks/MetricsUpdater.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void onReady(@NotNull ReadyEvent event) {
4848
for (Map.Entry<String, Function<Guild, String>> entry : TEXT_VARIABLES.entrySet()) {
4949
text = text.replace(entry.getKey(), entry.getValue().apply(guild));
5050
}
51-
config.getMetricsCategory().getManager().setName(text).queue(s -> log.info("Successfully updated Metrics"), t -> ExceptionLogger.capture(t, getClass().getSimpleName()));
51+
config.getMetricsCategory().getManager().setName(text).queue(s -> log.debug("Successfully updated Metrics"), t -> ExceptionLogger.capture(t, getClass().getSimpleName()));
5252
}
5353
}, 0, 20, TimeUnit.MINUTES);
5454
}

0 commit comments

Comments
 (0)