From 7921e5148acf1f7fa2d741792c9417e8ecdf994e Mon Sep 17 00:00:00 2001 From: cassiobotaro Date: Mon, 21 Dec 2015 12:10:50 -0200 Subject: [PATCH 1/2] fixing logging old behaviour --- .gitignore | 1 + gluon/widget.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 16597177..95b4e69b 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,4 @@ HOWTO-web2py-devel *.sublime-workspace .idea/* site-packages/ +logs/ diff --git a/gluon/widget.py b/gluon/widget.py index 64720bba..0a28fe37 100644 --- a/gluon/widget.py +++ b/gluon/widget.py @@ -1117,11 +1117,11 @@ def start(cron=True): if hasattr(options, key): setattr(options, key, getattr(options2, key)) - logfile0 = os.path.join('extras', 'examples', 'logging.example.conf') + logfile0 = os.path.join('examples', 'logging.example.conf') if not os.path.exists('logging.conf') and os.path.exists(logfile0): import shutil sys.stdout.write("Copying logging.conf.example to logging.conf ... ") - shutil.copyfile('logging.example.conf', logfile0) + shutil.copyfile(logfile0, 'logging.conf') sys.stdout.write("OK\n") # ## if -T run doctests (no cron) From db4c008de3d080cf38b4c517b2aaf4ff7100d466 Mon Sep 17 00:00:00 2001 From: cassiobotaro Date: Mon, 21 Dec 2015 15:40:25 -0200 Subject: [PATCH 2/2] Minor changes --- gluon/widget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/widget.py b/gluon/widget.py index 0a28fe37..fbda1697 100644 --- a/gluon/widget.py +++ b/gluon/widget.py @@ -1122,7 +1122,7 @@ def start(cron=True): import shutil sys.stdout.write("Copying logging.conf.example to logging.conf ... ") shutil.copyfile(logfile0, 'logging.conf') - sys.stdout.write("OK\n") + sys.stdout.write('OK\n') # ## if -T run doctests (no cron) if hasattr(options, 'test') and options.test: