Skip to content

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

} 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

@orthlus
Copy link
Author

orthlus commented Apr 24, 2025

@rubenlagus Hello! I pushed changes in logging exception during longpolling.
I think it helps with errors like Caused by: java.net.SocketException: Network unreachable

@orthlus orthlus changed the base branch from master to dev April 25, 2025 19:27
@rubenlagus rubenlagus force-pushed the dev branch 3 times, most recently from 52a184e to 9203912 Compare September 7, 2025 22:52
@orthlus
Copy link
Author

orthlus commented Oct 20, 2025

@rubenlagus Hello! Sorry for interrupt. Do you need any action from me?

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