minor logging changes

This commit is contained in:
Martin Klepsch 2018-04-18 10:27:42 +02:00
parent 510ac9a709
commit 726a3309b7
No known key found for this signature in database
GPG Key ID: 1A35E702AD48A9F6
1 changed files with 4 additions and 3 deletions

View File

@ -169,9 +169,10 @@
:body (json/write-str body)}
response @(post (eth-rpc-url) options)
result (safe-read-str (:body response))]
(log/infof "%s: eth-rpc %s" (or internal-tx-id "(no-tx-id)") method)
(log/debugf "eth-rpc req(%s) body: %s\neth-rpc req(%s) result: %s"
request-id body request-id result)
(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)
(log/debugf "%s: eth-rpc req(%s) result: %s" internal-tx-id request-id result)
(cond
;; Ignore any responses that have mismatching request ID
(not= (:id result) request-id)