Did you intend to wrap all logger.info calls in this logger.infoEnabled check?