Fix: Don't spam session daemon logs on invalid UST context
[lttng-tools.git] / src / bin / lttng-sessiond / trace-ust.c
index 1ddd597cf5647082a6eba147c32adab2cbb2aaa6..4d39e213326b6ce903e459b6bb243d807051696a 100644 (file)
@@ -547,7 +547,6 @@ int trace_ust_context_type_event_to_ust(enum lttng_event_context_type type)
                }
                break;
        default:
-               ERR("Invalid UST context");
                utype = -1;
                break;
        }
@@ -607,6 +606,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.031201 seconds and 4 git commands to generate.