refactor: change hook logs to debug

This commit is contained in:
Barış Soner Uşaklı
2023-01-30 10:00:39 -05:00
parent f66505c903
commit f4e533d944

View File

@@ -25,7 +25,7 @@ define('hooks', [], () => {
if (Hooks.logs._collection) {
Hooks.logs._collection.add(args);
} else {
console.log.apply(console, args);
console.debug.apply(console, args);
}
};
@@ -33,7 +33,7 @@ define('hooks', [], () => {
if (Hooks.logs._collection && Hooks.logs._collection.size) {
console.groupCollapsed('[hooks] Changes to hooks on this page …');
Hooks.logs._collection.forEach((args) => {
console.log.apply(console, args);
console.debug.apply(console, args);
});
console.groupEnd();
}