MDC.put(MDC_SERVER_FQDN, InetAddress.getLocalHost().getHostName());
MDC.put(MDC_SERVER_IP_ADDRESS, InetAddress.getLocalHost().getHostAddress());
} catch (Exception e) {
- e.printStackTrace();
+ errorLogger.error("Error while getting hostname or address", e);
}
MDC.put(MDC_INSTANCE_UUID, UUID.randomUUID().toString());
MDC.put(MDC_ALERT_SEVERITY, "0");
Singleton<Dmaap> dmaapholder = DatabaseClass.getDmaap();
String name = dmaapholder.get().getDmaapName();
ApiPolicy apiPolicy = new ApiPolicy();
- if ( apiPolicy.getUseAuthClass() && (name == null || name.isEmpty())) {
+ if ( apiPolicy.isPermissionClassSet() && (name == null || name.isEmpty())) {
ApiPerms p = new ApiPerms();
p.setBootMap();
}