Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix typo

  • Loading branch information...
commit af68aff5ef4be40c702bae25785eed2db591fd24 1 parent 2b90bf7
@posativ authored
Showing with 13 additions and 13 deletions.
  1. +12 −12 regenwolken/__init__.py
  2. +1 −1  setup.py
View
24 regenwolken/__init__.py
@@ -43,8 +43,9 @@ def __init__(self):
self.setup_extensions()
if '--debug' in sys.argv:
- self.config.['DEBUG'] = True
- else:
+ self.config['DEBUG'] = True
+
+ if not self.config['DEBUG']:
self.setup_logger() # this circumvents issues with cram BDT
def setup_routes(self):
@@ -90,16 +91,15 @@ def setup_mongodb(self):
def setup_logger(self):
- if not self.config['DEBUG']:
- path = self.config.get('LOGFILE', '/var/log/regenwolken.log')
- file_handler = logging.FileHandler(path)
- file_handler.setLevel(logging.WARNING)
- file_handler.setFormatter(logging.Formatter(
- '%(asctime)s %(levelname)s: %(message)s '
- '[in %(pathname)s:%(lineno)d]'
- ))
-
- self.logger.addHandler(file_handler)
+ path = self.config.get('LOGFILE', '/var/log/regenwolken.log')
+ file_handler = logging.FileHandler(path)
+ file_handler.setLevel(logging.WARNING)
+ file_handler.setFormatter(logging.Formatter(
+ '%(asctime)s %(levelname)s: %(message)s '
+ '[in %(pathname)s:%(lineno)d]'
+ ))
+
+ self.logger.addHandler(file_handler)
def setup_extensions(self):
View
2  setup.py
@@ -47,7 +47,7 @@ def find(path):
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Internet",
- "Topic :: Internet :: WWW/HTTP :: Dynamic Content"
+ "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7"
Please sign in to comment.
Something went wrong with that request. Please try again.