only log eth-rpc result if internal-tx-id is present

This commit is contained in:
Martin Klepsch 2018-04-19 10:45:59 +02:00
parent 05b953fe84
commit 687f29a591
No known key found for this signature in database
GPG Key ID: 1A35E702AD48A9F6
1 changed files with 3 additions and 1 deletions

View File

@ -172,7 +172,9 @@
(when internal-tx-id
(log/infof "%s: eth-rpc %s" internal-tx-id method))
(log/debugf "%s: eth-rpc req(%s) body: %s" internal-tx-id request-id body)
(if internal-tx-id
(log/infof "%s: eth-rpc req(%s) result: %s" internal-tx-id request-id result)
(log/debugf "no-tx-id: eth-rpc req(%s) result: %s" request-id result))
(cond
;; Ignore any responses that have mismatching request ID
(not= (:id result) request-id)