From 2ef3f1f1d275c1d76dd516ed5378747aa593395d Mon Sep 17 00:00:00 2001 From: Sean Thomas Burke <965298+seantomburke@users.noreply.github.com> Date: Fri, 29 Jul 2022 15:45:42 -0700 Subject: [PATCH] Improving debug (#108) Co-authored-by: Sean Thomas Burke --- src/assets/sitemapper.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/assets/sitemapper.js b/src/assets/sitemapper.js index f74c808..3d58942 100644 --- a/src/assets/sitemapper.js +++ b/src/assets/sitemapper.js @@ -67,7 +67,10 @@ export default class Sitemapper { // attempt to set the variables with the crawl if (this.debug) { - console.debug(`Using minimum lastmod value of ${this.lastmod}`); + // only show if it's set + if (this.lastmod) { + console.debug(`Using minimum lastmod value of ${this.lastmod}`); + } } try {