Skip to content
Snippets Groups Projects
Commit 3bbd4204 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6638 extend logging

parent 1f17ce57
Branches
Tags
No related merge requests found
......@@ -21,8 +21,12 @@ class ZufiRemoteService {
private VorgangManagerRegistrationServiceBlockingStub serviceStub;
public void registerVorgangManager(@NonNull List<String> organistationsEinheitenIds, String vorgangManagerAddress) {
boolean success = getServiceStub().register(buildRequest(organistationsEinheitenIds, vorgangManagerAddress)).getSuccess();
LOG.info("Register success: {}", success);
var result = getServiceStub().register(buildRequest(organistationsEinheitenIds, vorgangManagerAddress));
if (result.getSuccess()) {
LOG.info("Registration successfully organisationIds: {}", organistationsEinheitenIds);
} else {
LOG.error("Registration failed: {}", result.getMessage());
}
}
private VorgangManagerRegistrationServiceBlockingStub getServiceStub() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment