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

OZG-5636 fix logging

parent 7ef12b07
No related branches found
No related tags found
Loading
package de.ozgcloud.nachrichten.postfach.bayernid;
import java.util.Optional;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
......@@ -67,7 +68,8 @@ class BayernIdPostfachRemoteService implements PostfachRemoteService {
}
MessageWithFilesSender createMessageWithFilesSender(PostfachNachricht nachricht) {
LOG.info("Absender Dienst: {}", bayernIdProperties.getAbsender().getDienst());
LOG.info("Absender Dienst: {}",
Optional.ofNullable(bayernIdProperties).map(BayernIdProperties::getAbsender).map(Absender::getDienst).orElse("not configured"));
return MessageWithFilesSender.builder()
.reqObserverBuilder(buildCallStreamObserverBuilder())
.messageMetadata(mapper.toSendBayernIdMessageMetadataRequest(nachricht, bayernIdProperties.getAbsender()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment