Skip to content

Commit

Permalink
- moving logging config to local_settings as ep.io does not like you …
Browse files Browse the repository at this point in the history
…to write to it :)
  • Loading branch information
elpargo committed Mar 15, 2011
1 parent 6e4d4f8 commit 79659e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 8 additions & 0 deletions local_settings.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ DATABASES = {
DEBUG = True
TEMPLATE_DEBUG = DEBUG
SERVE_MEDIA = DEBUG

logging.basicConfig(
level=logging.DEBUG,
format='%(asctime)s %(levelname)s "%(message)s" in %(funcName)s() line %(lineno)d in %(pathname)s',
filename='main.log',
filemode='a',
)

7 changes: 0 additions & 7 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,6 @@
"INTERCEPT_REDIRECTS": False,
}

logging.basicConfig(
level=logging.DEBUG,
format='%(asctime)s %(levelname)s "%(message)s" in %(funcName)s() line %(lineno)d in %(pathname)s',
filename='main.log',
filemode='a',
)

if DEBUG:
CACHE_BACKEND = 'dummy://'
TEMPLATE_LOADERS = (
Expand Down

0 comments on commit 79659e5

Please sign in to comment.