just print cause of eth gas station throwable, 522 will be enough to tell it timed out without obliterating readability of logs

This commit is contained in:
Rob Culliton 2018-05-17 17:22:23 -04:00
parent 931da34eab
commit 2289c6b14a
No known key found for this signature in database
GPG Key ID: 6FDEF60B3DC84D94
1 changed files with 4 additions and 1 deletions

View File

@ -48,7 +48,10 @@
(try
(eth-gasstation-gas-price)
(catch Throwable t
(log/error "Failed to get gas price with ethgasstation API" t)
(let [cause (-> t
Throwable->map
:cause)]
(log/error "Failed to get gas price with ethgasstation API" cause))
(gas-price-from-config)))
(gas-price-from-config)))