On Monday, April 11, 2016 at 12:50:12 PM UTC-4, Michael Merickel wrote:
>
> 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
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.
- Michae
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
On Mon, Mar 28, 2016 at 6:58 PM, Jonathan Vanasco wrote:
> Does anyone know if it is possible to disable logging with prequest from the
> commandline?
>
> I was hoping there would be a way to do this, without editing an ini file.
You can have a view that does:
import logging
bad_log = logging.ge
Does anyone know if it is possible to disable logging with prequest from
the commandline?
I was hoping there would be a way to do this, without editing an ini file.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this g