Skip to content

Commit

Permalink
Configure logging before using it in public.wsgi (#219) r=bhearsum
Browse files Browse the repository at this point in the history
  • Loading branch information
tdz authored and bhearsum committed Jan 26, 2017
1 parent 3c2f9fd commit b5b7362
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions auslib/web/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from auslib.log import configure_logging
configure_logging()

import logging
log = logging.getLogger(__name__)

Expand Down
3 changes: 1 addition & 2 deletions uwsgi/public.wsgi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import logging
import os

from auslib.log import configure_logging
from auslib.web.base import sentry


SYSTEM_ACCOUNTS = ["ffxbld", "tbirdbld", "b2gbld", "stage-ffxbld", "stage-tbirdbld", "stage-b2gbld"]
Expand All @@ -29,7 +28,7 @@ if os.environ.get("LOG_FORMAT") == "plain":
configure_logging(**logging_kwargs)

from auslib.global_state import cache, dbo
from auslib.web.base import app as application
from auslib.web.base import app as application, sentry

cache.make_cache("blob", 500, 3600)
# There's probably no no need to ever expire items in the blob schema cache
Expand Down

0 comments on commit b5b7362

Please sign in to comment.