Be careful logging.warn is deprecated