From: Kai Moritz Date: Mon, 19 Feb 2024 13:31:21 +0000 (+0100) Subject: feat: Added log message for disabled storage X-Git-Tag: rebase--2024-02-20--10-29~6 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=6e385194ab085ef1fec633ccbf2c4219d0400f21;p=demos%2Fkafka%2Fchat feat: Added log message for disabled storage --- diff --git a/src/main/java/de/juplo/kafka/chat/backend/storage/nostorage/NoStorageStorageStrategy.java b/src/main/java/de/juplo/kafka/chat/backend/storage/nostorage/NoStorageStorageStrategy.java index 79f36d79..6ca08e22 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/storage/nostorage/NoStorageStorageStrategy.java +++ b/src/main/java/de/juplo/kafka/chat/backend/storage/nostorage/NoStorageStorageStrategy.java @@ -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 chatRoomInfoFlux) {}