File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
iris-client-bff/src/main/java/iris/client_bff/status Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1414import java .net .ConnectException ;
1515import java .net .SocketTimeoutException ;
1616import java .util .List ;
17+ import java .util .Objects ;
1718import java .util .Set ;
1819
1920import javax .validation .Valid ;
@@ -43,6 +44,7 @@ public Apps getAvailableApps() {
4344 return epsRpcClient .invoke (methodName , null , Directory .class ).entries ().stream ()
4445 .filter (directoryEntry -> directoryEntry .groups ().contains ("checkin-apps" ))
4546 .map (DirectoryEntry ::name )
47+ .filter (Objects ::nonNull )
4648 .map (App ::new )
4749 .collect (collectingAndThen (toList (), Apps ::new ));
4850
Original file line number Diff line number Diff line change 88import iris .client_bff .status .web .AppStatusController .AppStatusInfo .Info ;
99import lombok .AllArgsConstructor ;
1010import lombok .Value ;
11+ import lombok .extern .slf4j .Slf4j ;
1112
1213import java .util .List ;
1314
2728@ RequestMapping ("/status/checkin-apps" )
2829@ Validated
2930@ AllArgsConstructor
31+ @ Slf4j
3032public class AppStatusController {
3133
3234 private StatusService statusService ;
@@ -37,6 +39,9 @@ public List<App> getApps() {
3739 try {
3840 return statusService .getApps ().toList ();
3941 } catch (Exception e ) {
42+
43+ log .error ("Can't get apps from StatusService: " , e );
44+
4045 throw new ResponseStatusException (HttpStatus .BAD_REQUEST , e .getMessage ());
4146 }
4247 }
You can’t perform that action at this time.
0 commit comments