move logger line in handle_msg