diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b3c62c..f82e436 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [0.0.1 - 2024-09-30] +## [0.0.1 - 2024-11-04] ### Added - First version of the project - Spring Application @@ -142,3 +142,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Resend export files to research environment - Query Code in Explorer URL - Decode human readable in base 64 +- Log bridgeheads at start diff --git a/src/main/java/de/samply/bridgehead/BridgeheadConfiguration.java b/src/main/java/de/samply/bridgehead/BridgeheadConfiguration.java index 82aac05..629492e 100644 --- a/src/main/java/de/samply/bridgehead/BridgeheadConfiguration.java +++ b/src/main/java/de/samply/bridgehead/BridgeheadConfiguration.java @@ -3,6 +3,7 @@ import de.samply.app.ProjectManagerConst; import jakarta.annotation.PostConstruct; import lombok.Data; +import lombok.extern.slf4j.Slf4j; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; @@ -11,6 +12,7 @@ import java.util.Optional; import java.util.Set; +@Slf4j @Configuration @ConfigurationProperties(prefix = ProjectManagerConst.REGISTERED_BRIDGEHEADS) @Data @@ -33,10 +35,12 @@ public static class BridgeheadConfig { @PostConstruct private void initIdBridgeheadMaps() { + log.info("Registered bridgeheads:"); config.forEach((bridgehead, bridgeheadConfig) -> { addBridgeheadId(bridgehead, bridgeheadConfig.getExplorerId(), explorerIdBridgeheadMap); addBridgeheadId(bridgehead, bridgeheadConfig.getFocusBeamId(), focusIdBridgeheadMap); addBridgeheadId(bridgehead, bridgeheadConfig.getTokenManagerId(), tokenManagerIdBridgeheadMap); + log.info("\t- " + bridgehead + " (" + getHumanReadable(bridgehead) + ")"); }); }