[Grok-dev] Disable logging of Http connections (GETs, POSTs...) when logging in debug mode

Hector Blanco white.lists at gmail.com
Fri Dec 17 15:40:27 EST 2010

Hello everyone!

I have recently installed a Grok server (version 1.2.1). Everything is
working fine but when I start the server in debug mode (using
bin/paster serve --reload parts/etc/debug.ini) it shows all the
network traffic data (GET/POST...)

That is nice, and will be very useful, but right now I'm not that
centered in controlling the network traffic but more in developing
other functionalities. Is there any way of "hiding" said messages?

Here's my parts/etc/debug.ini file (it's the default version but...
just in case)

------------ parts/etc/debug.ini ------------
zope_conf = %(here)s/zope.conf

use = egg:Paste#http
host =
port = 8080

pipeline = accesslogging evalexception grok

use = egg:Paste#translogger

use = egg:z3c.evalexception#ajax

use = egg:grokcore.startup#debug
exempt-exceptions = zope.security.interfaces.IUnauthorized

# Logging configuration

keys = root

level = INFO
handlers = console

keys = console

class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic

keys = generic

format = %(asctime)s %(levelname)s [%(name)s] %(message)s

Thank you all in advance!

More information about the Grok-dev mailing list