sphinx: proxy site info to the debug infra more sensibly.
authorKrisztian Litkey <kli@iki.fi>
Tue, 3 Jun 2014 20:02:09 +0000 (23:02 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Wed, 4 Jun 2014 13:05:57 +0000 (16:05 +0300)
src/plugins/speech-to-text/sphinx/logger.c

index 57eb102..7cbc90e 100644 (file)
@@ -104,7 +104,8 @@ static void push_log(logger_t *logger)
         switch (lvl) {
         case 'I':
         default:
-            mrp_debug_at("sphinx", line, file, "%*.*s", n, n, b);
+            if (mrp_debug_check(file, "sphinx", line))
+                mrp_debug_msg("sphinx", line, file, "%*.*s", n, n, b);
             break;
         case 'W':
             mrp_log_msg(MRP_LOG_WARNING, file, line, "sphinx", "%*.*s", n, n, b);