Skip to content

Commit c4c76a9

Browse files
committed
Multiline log message
textblocks with \
1 parent fb04892 commit c4c76a9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

application/src/main/java/org/togetherjava/tjbot/commands/reminder/RemindRoutine.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ private static void sendReminderViaRoute(@NotNull RestAction<ReminderRoute> rout
100100
.content(route.description());
101101

102102
Consumer<Throwable> logFailure = failure -> logger.warn(
103-
"Failed to send a reminder (id '{}'), skipping it. This can be due to a network issue,"
104-
+ " but also happen if the bot disconnected from the target guild and the"
105-
+ " user has disabled DMs or has been deleted.",
103+
"""
104+
Failed to send a reminder (id '{}'), skipping it. This can be due to a network issue, \
105+
but also happen if the bot disconnected from the target guild and the \
106+
user has disabled DMs or has been deleted.""",
106107
id);
107108

108109
routeAction.flatMap(sendMessage).queue(doNothing(), logFailure);

0 commit comments

Comments
 (0)