Skip to content

Commit 2aa6230

Browse files
authored
Increase log levels on real issues (#601)
1 parent 231b304 commit 2aa6230

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/utils.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ export class AddonBase {
122122
const validate = ajv.getSchema(this.jsonValidationURI);
123123
const valid = validate(config);
124124
if (!valid && !IS_TESTING) {
125-
console.debug(`Validation error on addon "${this.addonName}":`);
126-
console.debug(validate.errors);
125+
console.error(`Validation error on addon "${this.addonName}":`);
126+
console.error(validate.errors);
127127
}
128128
return valid;
129129
}
@@ -447,7 +447,9 @@ export class DocumentationTool {
447447
}
448448
}
449449

450-
console.debug("We were not able to find the root selector.");
450+
console.warning(
451+
"Not able to find main content for link previews. Link previews may not function.",
452+
);
451453
return null;
452454
}
453455

@@ -481,7 +483,9 @@ export class DocumentationTool {
481483
}
482484
}
483485

484-
console.debug("We were not able to find the root selector.");
486+
console.warning(
487+
"Not able to find the main content CSS selector. Some addons features may not work as expected.",
488+
);
485489
return null;
486490
}
487491

0 commit comments

Comments
 (0)