src.ctf.lttng-live: honor component's initial log level and query LL
[babeltrace.git] / src / plugins / ctf / lttng-live / viewer-connection.h
index 761660f6557ff99c03d04263a7a18c8c83c8290d..be6dc5a194ba1c7f1eb81482ed0ae18ceee0b93d 100644 (file)
 #include "common/macros.h"
 #include "compat/socket.h"
 
-//TODO: this should not be used by plugins. Should copy code into plugin
-//instead.
+/*
+ * FIXME: This is an internal Babeltrace library header; it is not meant
+ * to be generic as it is now. Make sure this included code does not
+ * log because it won't find our local log level.
+ */
+#define BT_OBJECT_DONT_LOG
 #include "lib/object.h"
 
 #define LTTNG_DEFAULT_NETWORK_VIEWER_PORT      5344
@@ -41,6 +45,7 @@
 struct lttng_live_component;
 
 struct live_viewer_connection {
+       bt_logging_level log_level;
        bt_object obj;
 
        GString *url;
This page took 0.023498 seconds and 4 git commands to generate.