Remove log api from RpcEndpoint trait
Throw an exception if RpcEndpoint is not in RpcEnv