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 c622c75b6c
commit 6681341603
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 (when internal-tx-id
(log/infof "%s: eth-rpc %s" internal-tx-id method)) (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) (log/debugf "%s: eth-rpc req(%s) body: %s" internal-tx-id request-id body)
(log/infof "%s: eth-rpc req(%s) result: %s" internal-tx-id request-id result) (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 (cond
;; Ignore any responses that have mismatching request ID ;; Ignore any responses that have mismatching request ID
(not= (:id result) request-id) (not= (:id result) request-id)