Skip to content

Commit

Permalink
use prefix for debug messages #16
Browse files Browse the repository at this point in the history
  • Loading branch information
ohad.r committed Jul 15, 2024
1 parent b9970e1 commit dc2a361
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/authentication-flows-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { AuthenticationUserImpl } from "./authentication-user-impl";
import { PasswordPolicyRepositoryImpl } from "../config/password-policy-repository-impl";
import { randomString, shaString } from "../crypto/key-generator";

const debug = require('debug')('authentication-flows-processor');
const debug = require('debug')('authentication-flows:processor');

//constants that are relevant only for this class:
const EMAIL_NOT_VALID = "The e-mail you have entered is not valid.";
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/key-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import * as crypto from 'crypto';
import * as fs from 'fs';
import * as path from "path";
const debug = require('debug')('crypto');
const debug = require('debug')('authentication-flows:crypto');

const PUBLIC_KEY_FILE_NAME = "auth_flows_js_public_key";
const PRIVATE_KEY_FILE_NAME = "auth_flows_js_private_key";
Expand Down
2 changes: 1 addition & 1 deletion src/interceptors/default-email-sender.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AuthenticationFlowsError } from "..";
import * as nodemailer from 'nodemailer';
import { MailSender } from "../interfaces/mail-sender";
const debug = require('debug')('email');
const debug = require('debug')('authentication-flows:email');

export class DefaultMailSenderImpl implements MailSender {

Expand Down
2 changes: 1 addition & 1 deletion src/web/user-action-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
LinkExpiredError,
PasswordAlreadyChangedError
} from "..";
const debug = require('debug')('user-action-controller');
const debug = require('debug')('authentication-flows:user-action-controller');
let app;

/**
Expand Down

0 comments on commit dc2a361

Please sign in to comment.