1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-08 17:49:35 +00:00

add RequestsExecutor.Log

This commit is contained in:
2025-06-13 13:53:44 +06:00
parent 838fff8207
commit dd0de3b6d4
11 changed files with 44 additions and 20 deletions

View File

@@ -40,7 +40,7 @@ class CombinedSubcontextInitialAction(
runCatching {
invoke(update)
}.onFailure {
logger.error(it) {
(Log ?: logger).error(it) {
"Unable to execute $subaction for update $update. Will try on next round"
}
}.onSuccess {
@@ -50,7 +50,7 @@ class CombinedSubcontextInitialAction(
}
leftSubActions.removeAll(successSubActions)
if (successSubActions.isEmpty()) {
logger.error {
(Log ?: logger).error {
"Some SubActions have been unable to complete successfully:${leftSubActions.joinToString("\n") { it.toString() }}"
}
break