Skip to content
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

BotSession - logs reducing #1466

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

orthlus
Copy link

@orthlus orthlus commented Dec 24, 2024

With long polling and not good network in logs can be a lot of messages with stacktrace. But enough only message, no stacktrace

@@ -117,7 +117,7 @@ private ScheduledFuture<?> createPollerTask() throws TelegramApiException {
}
} catch (TelegramApiErrorResponseException e) {
long backOffMillis = backOff.nextBackOffMillis();
log.error("Error received from Telegram GetUpdates Request, retrying in {} millis...", backOffMillis, e);
log.error("Error received from Telegram GetUpdates Request, retrying in {} millis...", backOffMillis);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If not printing the full stacktrace, it can be helpful if we print at least the response from telegram or the actual error why we are retrying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants