Skip to content

Commit 5ea8b07

Browse files
committed
Change use of debug from as constructor to call directly
1 parent e487fc3 commit 5ea8b07

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/shared/authorization_error_handler.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import errOut from '../helpers/err_out.js';
66
import resolveResponseMode from '../helpers/resolve_response_mode.js';
77
import oneRedirectUriClients from '../actions/authorization/one_redirect_uri_clients.js';
88

9-
const debug = new Debug('oidc-provider:authentication:error');
10-
const serverError = new Debug('oidc-provider:server_error');
11-
const serverErrorTrace = new Debug('oidc-provider:server_error:trace');
9+
const debug = Debug('oidc-provider:authentication:error');
10+
const serverError = Debug('oidc-provider:server_error');
11+
const serverErrorTrace = Debug('oidc-provider:server_error:trace');
1212

1313
export default (provider) => {
1414
const AD_ACTA_CHECKS = Object.entries({

lib/shared/error_handler.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import * as formHtml from '../helpers/user_code_form.js';
77
import { ReRenderError } from '../helpers/re_render_errors.js';
88
import errOut from '../helpers/err_out.js';
99

10-
const debug = new Debug('oidc-provider:error');
11-
const serverError = new Debug('oidc-provider:server_error');
12-
const serverErrorTrace = new Debug('oidc-provider:server_error:trace');
10+
const debug = Debug('oidc-provider:error');
11+
const serverError = Debug('oidc-provider:server_error');
12+
const serverErrorTrace = Debug('oidc-provider:server_error:trace');
1313

1414
const userInputRoutes = new Set(['code_verification', 'device_resume']);
1515

0 commit comments

Comments
 (0)