Skip to content

Commit

Permalink
Added: Log bridgeheads at start
Browse files Browse the repository at this point in the history
  • Loading branch information
djuarezgf committed Nov 4, 2024
1 parent 141355b commit c8d7fd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -11,6 +12,7 @@
import java.util.Optional;
import java.util.Set;

@Slf4j
@Configuration
@ConfigurationProperties(prefix = ProjectManagerConst.REGISTERED_BRIDGEHEADS)
@Data
Expand All @@ -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) + ")");
});
}

Expand Down

0 comments on commit c8d7fd7

Please sign in to comment.