Skip to content

Commit

Permalink
Setup logging with prequest
Browse files Browse the repository at this point in the history
  • Loading branch information
sontek committed Jan 2, 2015
1 parent 731a8e8 commit 0882f7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyramid/scripts/prequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from pyramid.compat import url_unquote
from pyramid.request import Request
from pyramid.paster import get_app
from pyramid.paster import get_app, setup_logging
from pyramid.scripts.common import parse_vars

def main(argv=sys.argv, quiet=False):
Expand Down Expand Up @@ -102,6 +102,7 @@ def run(self):
self.out('You must provide at least two arguments')
return 2
app_spec = self.args[0]
setup_logging(app_spec)
path = self.args[1]
if not path.startswith('/'):
path = '/' + path
Expand Down

0 comments on commit 0882f7f

Please sign in to comment.