Log configuration details to ease debugging
[portal/ric-dashboard.git] / webapp-backend / src / main / java / org / oranosc / ric / portal / dash / controller / XappManagerController.java
index 094d518..9eb62e8 100644 (file)
@@ -61,6 +61,8 @@ public class XappManagerController {
        @Autowired
        public XappManagerController(final DefaultApi xappMgrClient) {
                Assert.notNull(xappMgrClient, "client must not be null");
+               if (logger.isDebugEnabled())
+                       logger.debug("ctor: configured with client type {}", xappMgrClient.getClass().getName());
                this.xappMgrClient = xappMgrClient;
        }
 
@@ -75,7 +77,8 @@ public class XappManagerController {
        @ApiOperation(value = "Calls the xApp Manager to get the list of xApps.", response = AllXapps.class)
        @RequestMapping(value = "/xapps", method = RequestMethod.GET)
        public AllXapps getAllXapps() {
-               logger.debug("getAllXapps via " + xappMgrClient.getApiClient().getBasePath());
+               if (logger.isDebugEnabled())
+                       logger.debug("getAllXapps via {}", xappMgrClient.getApiClient().getBasePath());
                return xappMgrClient.getAllXapps();
        }