changing printlns to use log-message