From 796886fc9c5f8a26b7014c22ee6efb67cd1013ca Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Sun, 2 Jun 2024 14:04:08 +0100 Subject: [PATCH] no metrics reduce log spam --- __init__.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/__init__.py b/__init__.py index 913fd8d..1d23851 100644 --- a/__init__.py +++ b/__init__.py @@ -35,12 +35,6 @@ def runtime_requirements(self): @fallback_handler(priority=100) def handle_fallback(self, message): utterance = message.data['utterance'].lower() - - try: - self.report_metric('failed-intent', {'utterance': utterance}) - except Exception: - self.log.exception('Error reporting metric') - for i in ['question', 'who.is', 'why.is']: if self.voc_match(utterance, i): self.log.debug('Fallback type: ' + i)