Convert all rpc print statements to proper logging