Replace every instance of `logger.warn` method with `logger.warning` as the former is deprecated.