Skip to content

Commit

Permalink
fix: added config test for debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
IamMayankThakur committed Oct 31, 2023
1 parent a995017 commit 1492467
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ts/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ function logDebugMessage(message: string) {
console.log();
}

function enableDebugLogs() {
debug.enable(SUPERTOKENS_DEBUG_NAMESPACE);
}

let getFileLocation = () => {
let errorObject = new Error();
if (errorObject.stack === undefined) {
Expand All @@ -48,4 +52,4 @@ let getFileLocation = () => {
return "N/A";
};

export { logDebugMessage };
export { logDebugMessage, enableDebugLogs, SUPERTOKENS_DEBUG_NAMESPACE };

0 comments on commit 1492467

Please sign in to comment.