diff options
| author | John Anderson <sontek@gmail.com> | 2015-01-01 17:42:57 -0800 |
|---|---|---|
| committer | John Anderson <sontek@gmail.com> | 2015-01-01 17:42:57 -0800 |
| commit | 0882f7f0f4648b37617543a196ec4d5bf6d65278 (patch) | |
| tree | f08970e38737634095b84b20d62f013dedfafcb9 | |
| parent | 731a8e8380bbf9b41298c0417795e68899b91953 (diff) | |
| download | pyramid-0882f7f0f4648b37617543a196ec4d5bf6d65278.tar.gz pyramid-0882f7f0f4648b37617543a196ec4d5bf6d65278.tar.bz2 pyramid-0882f7f0f4648b37617543a196ec4d5bf6d65278.zip | |
Setup logging with prequest
| -rw-r--r-- | pyramid/scripts/prequest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyramid/scripts/prequest.py b/pyramid/scripts/prequest.py index 2ab3b8bb9..92faa146c 100644 --- a/pyramid/scripts/prequest.py +++ b/pyramid/scripts/prequest.py @@ -5,7 +5,7 @@ import textwrap 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): @@ -102,6 +102,7 @@ class PRequestCommand(object): 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 |
