Change all print statements to log.msg calls.