Skip to content

Commit 64936a8

Browse files
committed
[FIX] the default on state of the debug variable so that it was now default off
1 parent f89c716 commit 64936a8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

vscode/asperheader/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export const defaultHeaderLogo: string[] = [
218218
export const defaultMaxScanLength: number = 100;
219219

220220
/** @brief Global debug mode flag for development and troubleshooting */
221-
export const enableDebug: boolean = true;
221+
export const enableDebug: boolean = false;
222222

223223
// ============================================================================
224224
// Behavioral Feature Toggles

vscode/asperheader/src/modules/logger.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,9 @@ class Log {
734734
* GUI notification level (Gui.debug method) rather than console level.
735735
*/
736736
debug(message: string, searchDepth: number | undefined = undefined) {
737+
if (this.LI.debugEnabled() === false) {
738+
return;
739+
}
737740
let final: string = "";
738741
final += this.LI.getDatetime() + " ";
739742
final += CodeConfig.get("extensionName") + " ";

0 commit comments

Comments
 (0)