Commit e52ccd98 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

dtl: log error stack for failed http request (#995)

* dtl: log error stack for failed http request

* chore: add changeset
parent 9d39121b
---
'@eth-optimism/data-transport-layer': patch
---
Logs the error stacktrace for a failed HTTP request
...@@ -198,6 +198,7 @@ export class L1TransportServer extends BaseService<L1TransportServerOptions> { ...@@ -198,6 +198,7 @@ export class L1TransportServer extends BaseService<L1TransportServerOptions> {
url: req.url, url: req.url,
elapsed, elapsed,
msg: e.toString(), msg: e.toString(),
stack: e.stack,
}) })
return res.status(400).json({ return res.status(400).json({
error: e.toString(), error: e.toString(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment