From daa5aa4b572b15a5a85badd6668450c8ed764ad8 Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 5 Apr 2022 15:01:13 -0500 Subject: [PATCH] chore: logs --- packages/sound/src/traits/audible.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/sound/src/traits/audible.js b/packages/sound/src/traits/audible.js index 837364a..5c38bac 100644 --- a/packages/sound/src/traits/audible.js +++ b/packages/sound/src/traits/audible.js @@ -4,6 +4,7 @@ import D from 'debug'; import Sound from '../sound'; const debug = D('@avocado/sound/audible'); +const debugSilly = debug.extend('silly'); export default () => class Audible extends Trait { @@ -72,7 +73,7 @@ export default () => class Audible extends Trait { hasSound: (key) => !!this.$$sounds[key], playSound: (key) => { - debug('Checking %s', key); + debugSilly('Checking %s', key); if (!this.entity.hasSound(key)) { try { this.$$sounds[key] = Sound.load({extends: key}) @@ -90,7 +91,7 @@ export default () => class Audible extends Trait { } if ('web' === process.env.FLECKS_CORE_BUILD_TARGET) { Promise.resolve(this.$$sounds[key]).then((sound) => { - debug('Playing %s', key); + debugSilly('Playing %s', key); sound.play(); }); }