[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [arm/master] fix: Making sure to load msg.* options on startup



commit de2e1b7a44543440aba5260ca4268aa8419c7de8
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Wed May 4 19:19:41 2011 -0700

    fix: Making sure to load msg.* options on startup
    
    The msg.* config options wouldn't be loaded before warning of unused config
    options if we didn't deduplicate a log at startup. Also loading on panel
    creation to be sure it's done before issuing the warning.
---
 src/cli/logPanel.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/cli/logPanel.py b/src/cli/logPanel.py
index 7c1c19a..6feb129 100644
--- a/src/cli/logPanel.py
+++ b/src/cli/logPanel.py
@@ -530,6 +530,11 @@ class LogPanel(panel.Panel, threading.Thread):
     threading.Thread.__init__(self)
     self.setDaemon(True)
     
+    # Make sure that the msg.* messages are loaded. Lazy loading it later is
+    # fine, but this way we're sure it happens before warning about unused
+    # config options.
+    loadLogMessages()
+    
     self._config = dict(DEFAULT_CONFIG)
     
     if config:



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits