Wrapper for Gorilla's JSON-RPC codec that logs errors