lib: set component's initial log level when adding it to the graph
[babeltrace.git] / src / lib / lib-logging.c
index e29c2e901281b964c94c859b1ec8b8ccd7892a78..1433489b652d7692f5b790ceace8bdebc75e0c94 100644 (file)
@@ -1055,8 +1055,9 @@ static inline void format_component(char **buf_ch, bool extended,
 {
        char tmp_prefix[TMP_PREFIX_LEN];
 
-       BUF_APPEND(", %sname=\"%s\"",
-               PRFIELD_GSTRING(component->name));
+       BUF_APPEND(", %sname=\"%s\", %slog-level=%s",
+               PRFIELD_GSTRING(component->name),
+               PRFIELD(bt_common_logging_level_string(component->log_level)));
 
        if (component->class) {
                SET_TMP_PREFIX("class-");
This page took 0.024269 seconds and 4 git commands to generate.