avoid using logger.log_exc_critical (will go away) and logger.warn (obsolete)