Skip to content

Commit

Permalink
Fix missing name in duplicate debug statement
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Jun 12, 2024
1 parent 168f441 commit b0b9c7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/UserConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,9 @@ class UserConfig {

/* Async friendly in 3.0 */
addPlugin(plugin, options = {}) {
// First addPlugin of a unique plugin wins
if (plugin?.eleventyPluginOptions?.unique && this.hasPlugin(plugin)) {
debug("Skipping duplicate unique addPlugin for %o", this.plugin);
debug("Skipping duplicate unique addPlugin for %o", this._getPluginName(plugin));
return;
}

Expand Down Expand Up @@ -459,7 +460,7 @@ class UserConfig {
_executePlugin(plugin, options) {
let name = this._getPluginName(plugin);
let ret;
debug(`Adding ${name || "anonymous"} plugin`);
debug(`Adding %o plugin`, name || "anonymous");
let pluginBenchmark = this.benchmarks.aggregate.get("Configuration addPlugin");

if (typeof plugin === "function") {
Expand Down

0 comments on commit b0b9c7c

Please sign in to comment.