Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Log durations on error as well (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
AxelJunker authored Jun 3, 2020
1 parent e81f7d1 commit 453122c
Show file tree
Hide file tree
Showing 14 changed files with 143 additions and 72 deletions.
7 changes: 6 additions & 1 deletion dist/src/errors.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ export interface ErrorDescription {
error: string;
error_description: string;
}
export declare const errorHandler: (req: Request, logger: Logger, defaultDelayMs?: number) => (err?: unknown) => Promise<void>;
export declare const errorHandler: ({ req, logger, startTimestamp, defaultNackDelayMs, }: {
req: Request;
logger: Logger;
startTimestamp: number;
defaultNackDelayMs?: number | undefined;
}) => (err?: unknown) => Promise<void>;
25 changes: 14 additions & 11 deletions dist/src/errors.js

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

2 changes: 1 addition & 1 deletion dist/src/errors.js.map

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

8 changes: 4 additions & 4 deletions dist/src/events.js

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

2 changes: 1 addition & 1 deletion dist/src/events.js.map

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

8 changes: 4 additions & 4 deletions dist/src/resource.js

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

2 changes: 1 addition & 1 deletion dist/src/resource.js.map

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

8 changes: 4 additions & 4 deletions dist/src/service.js

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

2 changes: 1 addition & 1 deletion dist/src/service.js.map

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

Loading

0 comments on commit 453122c

Please sign in to comment.