From 557cc825bb30c9add221e01796be8aecff99a884 Mon Sep 17 00:00:00 2001 From: Audrey Drake <6566104+RalphORama@users.noreply.github.com> Date: Sun, 6 Oct 2024 16:42:32 -0400 Subject: [PATCH] fix: restore debug logging --- src/replacements/BaseReplacement.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/replacements/BaseReplacement.ts b/src/replacements/BaseReplacement.ts index a708e82..6c46f61 100644 --- a/src/replacements/BaseReplacement.ts +++ b/src/replacements/BaseReplacement.ts @@ -1,3 +1,5 @@ +import { debug } from "../logging"; + export default class BaseReplacement { protected newDomain: string; @@ -62,6 +64,10 @@ export default class BaseReplacement { c = c.replace(/\?\w+=.*$/gm, ""); } + if (process.env.LINKFIX_DEBUG) { + debug(`replaceURLs()\t${url}\t${c}`, this.constructor.name); + } + return c; }) .join("\n");