Fix: Don't spam session daemon logs on invalid UST context
[lttng-tools.git] / 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.023338 seconds and 4 git commands to generate.