Bug 9060: Minor mdsaltrace_config.xml /this/will/never/exist 22/62622/5
authorMichael Vorburger <vorburger@redhat.com>
Mon, 4 Sep 2017 13:24:42 +0000 (15:24 +0200)
committerMichael Vorburger <vorburger@redhat.com>
Wed, 6 Dec 2017 15:07:21 +0000 (16:07 +0100)
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 13b5d86fdd636479177d57c14229c256f5a915b3..8ed38cdfe54cfd488d0a1056d351264df33d5dad 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> -->
     <transaction-debug-context-enabled>true</transaction-debug-context-enabled>
 </config>
index 5c6b09b5bf9db531d01e3b7ff48964ecc1c42b5e..a74d36bdee79ccbe6271bc8ab1abc7cc1ee8f21c 100644 (file)
@@ -18,7 +18,6 @@ module mdsaltrace {
     }
 
     container config {
-        // TODO leaf enabled ...
         leaf-list registration-watches {
             type string;
         }