feat: Added log message for disabled storage
authorKai Moritz <kai@juplo.de>
Mon, 19 Feb 2024 13:31:21 +0000 (14:31 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 20 Feb 2024 09:37:36 +0000 (10:37 +0100)
src/main/java/de/juplo/kafka/chat/backend/storage/nostorage/NoStorageStorageStrategy.java

index 79f36d7..6ca08e2 100644 (file)
@@ -1,15 +1,24 @@
 package de.juplo.kafka.chat.backend.storage.nostorage;
 
+import de.juplo.kafka.chat.backend.domain.ChatHomeService;
 import de.juplo.kafka.chat.backend.domain.ChatRoomInfo;
 import de.juplo.kafka.chat.backend.domain.Message;
 import de.juplo.kafka.chat.backend.implementation.StorageStrategy;
+import lombok.extern.slf4j.Slf4j;
 import reactor.core.publisher.Flux;
 
 import java.util.UUID;
 
 
+@Slf4j
 public class NoStorageStorageStrategy implements StorageStrategy
 {
+  @Override
+  public void write(ChatHomeService chatHomeService)
+  {
+    log.info("Storage is disabled: Not storing {}", chatHomeService);
+  }
+
   @Override
   public void writeChatRoomInfo(Flux<ChatRoomInfo> chatRoomInfoFlux) {}