On Mon, Mar 28, 2016 at 6:58 PM, Jonathan Vanasco <[email protected]> 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.getLogger("bad.logger")
logging.getLogger.setLevel(logging.WARN)
Or you can use the global throttle, although I never have:
logging.disable(logging.INFO)
I assume you want to log warning and above. If you want to suppress
everything, the highest defined level is CRITICAL=50 but you can pass
any number and I think the scale is intended to theoretically top out
at 100.
--
Mike Orr <[email protected]>
--
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.