Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmarrero committed Jan 23, 2024
1 parent e48f966 commit 6fda25f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/EnvoyAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ class EnvoyAPI {
}

static safeRequestsError(error) {
console.log(`constructing error`);
console.log(`constructing error from ${JSON}`);
const safeError = {
code: error.code ?? error.statusCode,
message: error.message,
Expand All @@ -557,6 +557,7 @@ class EnvoyAPI {
method: error.request?.method ?? error.options?.method,
stack: error.stack,
}
console.log(`built error`);
throw safeError;
}
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@envoy/envoy-integrations-sdk",
"version": "2.0.1-beta.3",
"version": "2.0.1-beta.4",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 6fda25f

Please sign in to comment.