Fix: cleanup JUL agent state on sessiond disconnect
[lttng-ust.git] / liblttng-ust-jul / org / lttng / ust / jul / LTTngLogHandler.java
index b4e1c088423a5a2e68f491b07ff9c24c528c97f7..ddeb5eb3b36e9e04cba608cbd0a17539a948c265 100644 (file)
@@ -83,6 +83,14 @@ public class LTTngLogHandler extends Handler {
                }
        }
 
+       /*
+        * Cleanup this handler state meaning put it back to a vanilla state.
+        */
+       public void clear() {
+               this.eventMap.clear();
+               this.logLevelsAll.clear();
+       }
+
        @Override
        public void close() throws SecurityException {}
 
This page took 0.023404 seconds and 4 git commands to generate.