Convert logging from printf to Lwt_log