Add useful logging to debug RPC calls.