refactor: change info logs to debug or warning
This CL converts some info-level messages to the debug level because
they're irrelevant and shouldn't be shown by default in the Javascript
console.
Also, one info-level message has been converted to a warning because it
represents a situation that couldn't be handled by the extension which
causes the feature to behave in an unexpected manner.
Change-Id: If1a153320c502bd5a2805597c8558456039a89a1
diff --git a/src/injections/profileIndicator.js b/src/injections/profileIndicator.js
index f82737c..8e6344c 100644
--- a/src/injections/profileIndicator.js
+++ b/src/injections/profileIndicator.js
@@ -417,7 +417,7 @@
for (const linkType of CC_PROFILE_LINK_TYPES) {
if (node.matches(linkType.nodeSelector)) {
- console.info('Handling profile indicator via mutation callback.');
+ console.debug('Handling profile indicator via mutation callback.');
getOptionsAndHandleIndicators(node, linkType.ui);
break;
}
@@ -436,7 +436,7 @@
for (const linkType of CC_PROFILE_LINK_TYPES) {
let node = document.querySelector(linkType.nodeSelector);
if (node !== null) {
- console.info('Handling profile indicator via first check.');
+ console.debug('Handling profile indicator via first check.');
getOptionsAndHandleIndicators(node, linkType.ui);
break;
}