Fix: Don't spam session daemon logs on invalid UST context
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 Nov 2015 17:07:56 +0000 (12:07 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 Nov 2015 17:29:25 +0000 (12:29 -0500)
Fixes #976

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/trace-ust.c

index 4afb21385fefd08f66ec465032850cffc3c6793f..783ad90bdbe415be782311fd3475f9b7dae71014 100644 (file)
@@ -476,7 +476,6 @@ int trace_ust_context_type_event_to_ust(enum lttng_event_context_type type)
                }
                break;
        default:
-               ERR("Invalid UST context");
                utype = -1;
                break;
        }
@@ -536,6 +535,7 @@ struct ltt_ust_context *trace_ust_create_context(
 
        utype = trace_ust_context_type_event_to_ust(ctx->ctx);
        if (utype < 0) {
+               ERR("Invalid UST context");
                return NULL;
        }
 
This page took 0.02508 seconds and 4 git commands to generate.