Bug 9060: Minor mdsaltrace_config.xml /this/will/never/exist 24/62624/2
authorMichael Vorburger <vorburger@redhat.com>
Mon, 4 Sep 2017 13:24:42 +0000 (15:24 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Mon, 4 Sep 2017 17:54:15 +0000 (17:54 +0000)
Found during use, and avoids having to do this workaround:

log:set ERROR org.opendaylight.controller.md.sal.trace.dom.impl

Change-Id: Iff5fb5eee8d938f1ec6dcb33d5d8a6ec58f2a2b9
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
opendaylight/md-sal/mdsal-trace/api/src/main/resources/initial/mdsaltrace_config.xml
opendaylight/md-sal/mdsal-trace/api/src/main/yang/mdsaltrace.yang

index 9dfd36206566bba8cbd1546d3e054ec44e922881..27c8bddce0363b11b1ba7137efa5a4c873174d78 100644 (file)
@@ -1,6 +1,14 @@
 <config xmlns="urn:opendaylight:params:xml:ns:yang:mdsaltrace">
+    <!--  Both registration-watches as well as write-watches will
+          log EVERYTHING by default, if we do not constrain any paths;
+          therefore we set a fake one to get nothing out-of-the-box;
+          please remove this first fake one when you configure this
+          to watch what you are really interested in instead: -->
+    <registration-watches>/this/will/never/exist</registration-watches>
     <!-- <registration-watches>/neutron-router-dpns/router-dpn-list</registration-watches> -->
     <!-- <registration-watches>/tunnels_state/state-tunnel-list</registration-watches> -->
+
+    <write-watches>/this/will/never/exist</write-watches>
     <!-- <write-watches> /NetworkTopology/Topology</write-watches> -->
 
     <!-- Enable or disable transaction context debug. This will preserve the call site trace for
index 3761fa9c1da7318b47a8219e60d467e55ed7a124..60e0d914a9a5af06524747e3ab869d9d8dc3adff 100644 (file)
@@ -18,7 +18,6 @@ module mdsaltrace {
     }
 
     container config {
-        // TODO leaf enabled ...
         leaf-list registration-watches {
             type string;
         }