Logger.warn is deprecated