[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Configure and start logging ASAP in bridgedb.Main.
commit c109f90004f889571a1cb725c11f1d332280812e
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Tue Nov 5 06:16:52 2013 +0000
Configure and start logging ASAP in bridgedb.Main.
This is the earliest point at which we have everything we need to call
configureLogging(); we probably should not delay it, otherwise we risk losing
information on anything happening earlier.
* MOVE call to bridgedb.Main.configureLogging() to be as early in the code as
possible.
---
lib/bridgedb/Main.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/bridgedb/Main.py b/lib/bridgedb/Main.py
index cc53ecf..f87c1df 100644
--- a/lib/bridgedb/Main.py
+++ b/lib/bridgedb/Main.py
@@ -223,15 +223,15 @@ def startup(cfg, options):
else:
cfg.PROXY_LIST_FILES = []
+ # Set up logging.
+ configureLogging(cfg)
+
# Write the pidfile.
if cfg.PIDFILE:
f = open(cfg.PIDFILE, 'w')
f.write("%s\n" % os.getpid())
f.close()
- # Set up logging.
- configureLogging(cfg)
-
# Import Servers after logging is set up. Otherwise, python will create a
# default handler that logs to the console and ignore further basicConfig
# calls.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits