Skip to content

Commit

Permalink
fix: restore debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
RalphORama committed Oct 6, 2024
1 parent a155452 commit 557cc82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/replacements/BaseReplacement.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { debug } from "../logging";

export default class BaseReplacement {
protected newDomain: string;

Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 557cc82

Please sign in to comment.