Skip to content

Commit

Permalink
added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
yvasyliev committed Oct 20, 2023
1 parent b97e7ce commit 52c9059
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public RedTelBot(@Value("${BOT_TOKEN}") String botToken) {

public void startPolling() throws TelegramApiException {
botSession = context.getBean(TelegramBotsApi.class).registerBot(this);
LOGGER.info("Started polling.");
}

public void stopPolling() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public void schedulePosting() {
}
}
}, 0, 1, TimeUnit.MINUTES);
LOGGER.info("Started posting.");
}

public void publishPosts(List<Post> posts) {
Expand Down

0 comments on commit 52c9059

Please sign in to comment.