Merge pull request #1137 from cassiobotaro/fix_logging

fixing logging old behaviour
This commit is contained in:
mdipierro
2015-12-23 23:08:17 -06:00
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -59,3 +59,4 @@ HOWTO-web2py-devel
*.sublime-workspace
.idea/*
site-packages/
logs/
+3 -3
View File
@@ -1117,12 +1117,12 @@ 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)
sys.stdout.write("OK\n")
shutil.copyfile(logfile0, 'logging.conf')
sys.stdout.write('OK\n')
# ## if -T run doctests (no cron)
if hasattr(options, 'test') and options.test: