check debug env to show debug logs
This commit is contained in:
parent
cd91329be0
commit
8409d472bf
1 changed files with 4 additions and 1 deletions
3
log.ts
3
log.ts
|
@ -3,5 +3,8 @@ export function info(...args: unknown[]): void {
|
|||
}
|
||||
|
||||
export function debug(...args: unknown[]): void {
|
||||
// choose better name for this env
|
||||
if (Deno.env.get("DEBUG") === "1") {
|
||||
console.log("[DEBUG]", ...args);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue