Change uses of print to log.warn