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

atagar at torproject.org atagar at torproject.org
Sun Jul 17 06:08:18 UTC 2011


commit de2e1b7a44543440aba5260ca4268aa8419c7de8
Author: Damian Johnson <atagar at torproject.org>
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:





More information about the tor-commits mailing list