Skip to content
Snippets Groups Projects
Commit 8cf7cee1 authored by OZGCloud's avatar OZGCloud
Browse files

load landesnetzinfo only for EA but use url

parent a33a3708
Branches
Tags
No related merge requests found
......@@ -31,6 +31,7 @@ class ForwardingLandesnetzInfoService {
@Autowired
private ResourceLoader resourceLoader;
// TODO use Resource as datatype
@Value("${pluto.forwarding.lninfo.url:#{null}}")
private String lnInfoUrl;
......@@ -70,7 +71,7 @@ class ForwardingLandesnetzInfoService {
try {
return Optional.ofNullable(StreamUtils.copyToString(resourceLoader.getResource(source).getInputStream(), Charset.defaultCharset()));
} catch (IOException e) {
LOG.info("Fehler beim Einlesen der Landesnetzinfo.", e);
LOG.error("Fehler beim Einlesen der Landesnetzinfo.", e);
}
return Optional.empty();
}
......
pluto:
forwarding:
lninfo:
url: http://lninfo.landsh.de
\ No newline at end of file
......@@ -19,8 +19,6 @@ pluto:
production: false
forwarding:
reply-to: EA-Poststelle@itvsh.de
lninfo:
url: classpath:files/LandesnetzInfo.html
management:
server:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment