From f37a41aef6826fae4d46276f49590542f69c9924 Mon Sep 17 00:00:00 2001 From: Mark Tyneway Date: Tue, 1 Jun 2021 16:18:44 -0700 Subject: [PATCH 1/2] dtl: log error stack for failed http request --- packages/data-transport-layer/src/services/server/service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/data-transport-layer/src/services/server/service.ts b/packages/data-transport-layer/src/services/server/service.ts index 8774181ade3e..4e781114d92d 100644 --- a/packages/data-transport-layer/src/services/server/service.ts +++ b/packages/data-transport-layer/src/services/server/service.ts @@ -198,6 +198,7 @@ export class L1TransportServer extends BaseService { url: req.url, elapsed, msg: e.toString(), + stack: e.stack, }) return res.status(400).json({ error: e.toString(), From 2cbfd588fc663948dd62e58c425614434ff0df93 Mon Sep 17 00:00:00 2001 From: Mark Tyneway Date: Tue, 1 Jun 2021 16:20:59 -0700 Subject: [PATCH 2/2] chore: add changeset --- .changeset/slimy-rivers-promise.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/slimy-rivers-promise.md diff --git a/.changeset/slimy-rivers-promise.md b/.changeset/slimy-rivers-promise.md new file mode 100644 index 000000000000..38b393bac00e --- /dev/null +++ b/.changeset/slimy-rivers-promise.md @@ -0,0 +1,5 @@ +--- +'@eth-optimism/data-transport-layer': patch +--- + +Logs the error stacktrace for a failed HTTP request