Skip to content

reduce log level of common logs #518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class HelpForumUpdater {
@Scheduled(cron = "0 */10 * * * *") // Run every 10 minutes
public void execute() {
for (Guild guild : jda.getGuilds()) {
log.info("Checking for inactive forum posts in {}", guild.getName());
log.debug("Checking for inactive forum posts in {}", guild.getName());
HelpConfig config = botConfig.get(guild).getHelpConfig();
ForumChannel forum = config.getHelpForumChannel();
if (forum != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public HelpTransaction save(HelpTransaction transaction) throws DataAccessExcept
"channel",transaction.getChannelId())
);
transaction.setId(key.longValue());
log.info("Inserted new Help Transaction: {}", transaction);
log.debug("Inserted new Help Transaction: {}", transaction);
return transaction;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void onReady(@NotNull ReadyEvent event) {
for (Map.Entry<String, Function<Guild, String>> entry : TEXT_VARIABLES.entrySet()) {
text = text.replace(entry.getKey(), entry.getValue().apply(guild));
}
config.getMetricsCategory().getManager().setName(text).queue(s -> log.info("Successfully updated Metrics"), t -> ExceptionLogger.capture(t, getClass().getSimpleName()));
config.getMetricsCategory().getManager().setName(text).queue(s -> log.debug("Successfully updated Metrics"), t -> ExceptionLogger.capture(t, getClass().getSimpleName()));
}
}, 0, 20, TimeUnit.MINUTES);
}
Expand Down