Skip to content

Commit

Permalink
Improving debug (#108)
Browse files Browse the repository at this point in the history
Co-authored-by: Sean Thomas Burke <[email protected]>
  • Loading branch information
seantomburke and seantomburke authored Jul 29, 2022
1 parent ebfaad9 commit 2ef3f1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/assets/sitemapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2ef3f1f

Please sign in to comment.