Enable dbus trace when adaptor starts up.
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Wed, 11 Jun 2014 06:48:44 +0000 (08:48 +0200)
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Wed, 11 Jun 2014 12:17:01 +0000 (14:17 +0200)
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
src/dbus/dlt-dbus.c

index 5cbba85..ce5505f 100644 (file)
 
 #include <time.h>
 
-#ifdef USE_EAVESDROP
-    #define EAVESDROPPING_RULE "eavesdrop=true,"
-#else
-    #define EAVESDROPPING_RULE ""
-#endif
-
 DLT_DECLARE_CONTEXT(dbusLog);
 DLT_DECLARE_CONTEXT(dbusContext);
 
@@ -109,7 +103,7 @@ int main (int argc, char *argv[])
                DLT_REGISTER_APP (config.ApplicationId, "DBus Logging");
 
        // register context
-       DLT_REGISTER_CONTEXT(dbusContext, config.DBus.ContextId, "DBus Context for Logging");
+       DLT_REGISTER_CONTEXT_LL_TS(dbusContext, config.DBus.ContextId, "DBus Context for Logging",DLT_LOG_INFO,DLT_TRACE_STATUS_ON);
        DLT_REGISTER_CONTEXT(dbusLog, "Log", "DBus Context for Logging Generic information");
 
        // initialise error handler