diff --git a/src/main/java/com/github/stickerifier/stickerify/bot/Stickerify.java b/src/main/java/com/github/stickerifier/stickerify/bot/Stickerify.java index ae5f8ce4..d467394f 100644 --- a/src/main/java/com/github/stickerifier/stickerify/bot/Stickerify.java +++ b/src/main/java/com/github/stickerifier/stickerify/bot/Stickerify.java @@ -151,7 +151,7 @@ private File retrieveFile(String fileId) throws TelegramApiException { } private void processFailure(TelegramRequest request, TelegramApiException e) { - if (e.getMessage().endsWith("Bad Request: message to reply not found")) { + if (e.getMessage().endsWith("Bad Request: message to be replied not found")) { LOGGER.atInfo().log("Unable to reply to the {}: the message sent has been deleted", request.getDescription()); } else if ("The video could not be processed successfully".equals(e.getMessage())) { LOGGER.atInfo().log("Unable to reply to the {}: the file is corrupted", request.getDescription()); diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 3de0499e..5435d06a 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -4,7 +4,7 @@ - %highlight([%d{"dd/MM/YYYY HH:mm:ss.SSS' CET'", CET}] %-5level) %boldCyan([%t] %-11logger{0}) %boldYellow(-) %msg%n%red(%ex) + %highlight([%d{"dd/MM/YYYY HH:mm:ss.SSS' CET'", CET}] %-5level) %boldCyan([%-10t] %-11logger{0}) %boldYellow(-) %msg%n%red(%ex)