This is required or the `logger.warn` raises an exception when a deprecation message is logged.