use log.warning instead of deprecated log.warn