1
0
Fork 0

feat(core): Consistent debug output style

This commit is contained in:
joostdecock 2023-06-11 09:41:32 +02:00
parent 46f547eb14
commit c1fdf83088
2 changed files with 3 additions and 3 deletions

View file

@ -376,7 +376,7 @@ Pattern.prototype.__runHooks = function (hookName, data = false) {
if (data === false) data = this
let hooks = this.plugins.hooks[hookName]
if (hooks.length > 0) {
this.store.log.debug(`Running \`${hookName}\` hooks`)
this.store.log.debug(`🪝 Running \`${hookName}\` hooks`)
for (let hook of hooks) {
hook.method(data, hook.data)
}

View file

@ -26,7 +26,7 @@ PatternDrafter.prototype.draft = function () {
this.pattern.setStores[set] = this.pattern.__createSetStore()
this.__useSet(set)
this.activeStore.log.debug(`Initialized store for set \`${set}\``)
this.activeStore.log.debug(`🗃️ Initialized store for set \`${set}\``)
this.pattern.__runHooks('preSetDraft')
this.activeStore.log.debug(`📐 Drafting pattern for set \`${set}\``)
@ -119,7 +119,7 @@ PatternDrafter.prototype.__createPartForSet = function (partName, set = 0) {
// Handle inject/inheritance
const parent = this.pattern.config.inject[partName]
if (typeof parent === 'string') {
this.activeStore.log.debug(`Creating part \`${partName}\` from part \`${parent}\``)
this.activeStore.log.debug(`🪆 Creating part \`${partName}\` from part \`${parent}\``)
try {
this.pattern.parts[set][partName].__inject(this.pattern.parts[set][parent])
} catch (err) {