Updated deprecated logger.warn to logger.warning