File tree Expand file tree Collapse file tree
src/main/java/org/owasp/wrongsecrets/challenges/docker/challenge61 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ public ResponseEntity<String> handleWebhook(
5757 }
5858
5959 try {
60- logger .info ("Received webhook update: {}" , sanitizeForLog (String .valueOf (update .get ("update_id" ))));
60+ logger .info (
61+ "Received webhook update: {}" , sanitizeForLog (String .valueOf (update .get ("update_id" ))));
6162
6263 // Check if this is a message update
6364 if (update .containsKey ("message" )) {
@@ -104,7 +105,9 @@ private void sendSecretMessage(Object chatId) {
104105 Map <String , Object > response = restTemplate .getForObject (sendMessageUrl , Map .class );
105106
106107 if (response != null && Boolean .TRUE .equals (response .get ("ok" ))) {
107- logger .info ("Successfully sent secret message to chat_id: {}" , sanitizeForLog (String .valueOf (chatId )));
108+ logger .info (
109+ "Successfully sent secret message to chat_id: {}" ,
110+ sanitizeForLog (String .valueOf (chatId )));
108111 } else {
109112 logger .warn ("Failed to send message to Telegram" );
110113 }
You can’t perform that action at this time.
0 commit comments