[Pkg-privacy-commits] [obfsproxy] 32/353: Commented out logging

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:01:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository obfsproxy.

commit 4f7cb09aa8a783fbaa86d94b4cc4f23331d015e5
Author: Brandon Wiley <brandon at blanu.net>
Date:   Wed Aug 8 14:21:09 2012 -0500

    Commented out logging
---
 src/cli.py | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/src/cli.py b/src/cli.py
index 25d1edf..861a437 100644
--- a/src/cli.py
+++ b/src/cli.py
@@ -5,8 +5,7 @@ import os
 import sys
 import logging
 
-logging.basicConfig(filename='/home/brandon/py-obfsproxy/pyobfslog.txt'
-                    , loglevel=logging.DEBUG)
+logging.basicConfig(filename='/home/brandon/py-obfsproxy/pyobfslog.txt', loglevel=logging.DEBUG)
 logging.error('py-obfsproxy CLI loaded')
 logging.error('argv: ' + str(sys.argv))
 
@@ -64,9 +63,10 @@ if __name__ == '__main__':
         logging.error('Exception parsing')
         logging.error(str(e))
 
-#    if args.log_file and len(args.log_file)>0:
-# ....print('file logging: '+str(args.log_file[0]))
-#        logging.basicConfig(filename=args.log_file[0])
+    if args.log_file and len(args.log_file)>0:
+      logging.error('file logging: '+str(args.log_file[0])+' '+str(os.path.exists(args.log_file[0])))
+      logging.config.fileConfig(str(args.log_file[0]), disable_existing_loggers=False)
+      logging.error('new logging in place')
 
     logging.error('py-obfsproxy CLI loaded')
 
@@ -81,8 +81,3 @@ if __name__ == '__main__':
     else:
         logging.error('Unsupported mode. Only managed mode is available at the moment.'
                       )
-
-#        if dest:
-#            daemon = ExternalClient()
-#        else:
-#            daemon = ExternalServer()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/obfsproxy.git



More information about the Pkg-privacy-commits mailing list