public synchronized void logConfigReport ( ) { ConfigStatus reportStatus = mConfigCheckReport . getConfigStatus ( ) ; if ( reportStatus . equals ( ConfigStatus . PASSED ) ) { LOG . info ( CONSISTENT_CONFIGURATION_INFO ) ; } else if ( reportStatus . equals ( ConfigStatus . WARN ) ) { LOG . warn ( "{}\nWarnings: {}" , INCONSISTENT_CONFIGURATION_INFO , mConfigCheckReport . getConfigWarns ( ) . values ( ) . stream ( ) . map ( Object :: toString ) . limit ( LOG_CONF_SIZE ) . collect ( Collectors . joining ( ", " ) ) ) ; } else { LOG . error ( "{}\nErrors: {}\nWarnings: {}" , INCONSISTENT_CONFIGURATION_INFO , mConfigCheckReport . getConfigErrors ( ) . values ( ) . stream ( ) . map ( Object :: toString ) . limit ( LOG_CONF_SIZE ) . collect ( Collectors . joining ( ", " ) ) , mConfigCheckReport . getConfigWarns ( ) . values ( ) . stream ( ) . map ( Object :: toString ) . limit ( LOG_CONF_SIZE ) . collect ( Collectors . joining ( ", " ) ) ) ; } }
Logs the configuration check report information .