use logger.warn instead of logger.warning (redmine #1828)