prequest --help says:

    The variable "environ['paste.command_request']" will be set to "True" in
    the request's WSGI environment, so your application can distinguish
these
    calls from normal requests.

So you can do something specific for prequest, or you can use a different
ini.

- Michael


On Mon, Apr 11, 2016 at 11:14 AM, Jonathan Vanasco <[email protected]>
wrote:

> Thanks for the advice.
>
> I should have been more clear -- my intent isn't to turn off logging on a
> running application, it's to turn off logging on views invoked by prequest.
>
> I have a sideproject that doesn't necessarily need to be run via a web
> interface.  a quick way to do "offline" work is to just use prequest to
> invoke specific views.
>
> If I do `prequest development.ini /path/to/view`, there is an immense
> amount of logging output to the console before the output of the view.  I
> just want to adjust the logging level for that terminal invocation.
>
> I don't think it's possible to do that without changing the `ini` file OR
> somehow detecting that the app is being invoked by `prequest` and then
> adjusting the log level.
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to