[Grok-dev] Don't log ThreadPool messages
Hector Blanco
white.lists at gmail.com
Mon Mar 28 10:57:04 EDT 2011
Hello everyone...
I am using Grok 1.4.3 / grokui.admin 0.9 and Zope 3 (I don't know
exactly which version)
When I start the server in debug mode, it starts logging a lot of
information about the threads, workers... I don't really need that (at
least for the moment). Is there a way to disable it?
2011-03-28 10:50:57,207 DEBUG [backlib.database.ManagersCache] ::reset
> Executing resetByTimer.
2011-03-28 10:50:57,470 DEBUG [ZODB.BaseStorage] create storage
/home/ae/ev-cms/server/var/filestorage/Data.fs
2011-03-28 10:50:57,755 DEBUG [ZODB.blob] (5598) Blob directory
`/home/ae/ev-cms/server/var/blobstorage` has layout marker set.
Selected `bushy` layout.
2011-03-28 10:50:57,761 DEBUG [txn.-1219373376] new transaction
2011-03-28 10:50:57,761 DEBUG [txn.-1219373376] commit
2011-03-28 10:50:57,762 DEBUG [txn.-1219373376] new transaction
2011-03-28 10:50:57,762 DEBUG [txn.-1219373376] commit
Starting server in PID 5598.
2011-03-28 10:50:57,773 DEBUG [paste.httpserver.ThreadPool] Started
new worker -1247663216: Initial worker pool
2011-03-28 10:50:57,773 DEBUG [paste.httpserver.ThreadPool] Started
new worker -1256055920: Initial worker pool
2011-03-28 10:50:57,774 DEBUG [paste.httpserver.ThreadPool] Started
new worker -1264448624: Initial worker pool
2011-03-28 10:50:57,774 DEBUG [paste.httpserver.ThreadPool] Started
new worker -1272841328: Initial worker pool
2011-03-28 10:50:57,775 DEBUG [paste.httpserver.ThreadPool] Started
new worker -1281234032: Initial worker pool
2011-03-28 10:50:57,776 DEBUG [paste.httpserver.ThreadPool] Started
new worker -1289626736: Initial worker pool
2011-03-28 10:50:57,776 DEBUG [paste.httpserver.ThreadPool] Started
new worker -1298019440: Initial worker pool
2011-03-28 10:50:57,777 DEBUG [paste.httpserver.ThreadPool] Started
new worker -1306412144: Initial worker pool
2011-03-28 10:50:57,778 DEBUG [paste.httpserver.ThreadPool] Started
new worker -1314804848: Initial worker pool
2011-03-28 10:50:57,778 DEBUG [paste.httpserver.ThreadPool] Started
new worker -1323197552: Initial worker pool
serving on http://192.168.1.200:8080
2011-03-28 10:51:03,729 DEBUG [paste.httpserver.ThreadPool] Added task
(0 tasks queued)
2011-03-28 10:51:03,787 DEBUG [txn.-1247663216] new transaction
2011-03-28 10:51:03,793 DEBUG [txn.-1247663216] abort
2011-03-28 10:51:03,794 DEBUG [txn.-1247663216] new transaction
2011-03-28 10:51:03,795 DEBUG [txn.-1247663216] commit
2011-03-28 10:51:03,795 DEBUG [txn.-1247663216] new transaction
2011-03-28 10:51:03,798 DEBUG [txn.-1247663216] commit
2011-03-28 10:51:07,160 DEBUG [paste.httpserver.ThreadPool] Added task
(0 tasks queued)
2011-03-28 10:51:07,173 DEBUG [txn.-1256055920] new transaction
2011-03-28 10:51:07,289 DEBUG [txn.-1256055920] commit <Connection at 0999490c>
2011-03-28 10:51:07,303 DEBUG [txn.-1256055920] commit
2011-03-28 10:51:07,596 DEBUG [paste.httpserver.ThreadPool] Added task
(0 tasks queued)
2011-03-28 10:51:07,794 DEBUG [paste.httpserver.ThreadPool] Added task
(0 tasks queued)
2011-03-28 10:51:07,801 DEBUG [paste.httpserver.ThreadPool] Added task
(0 tasks queued)
2011-03-28 10:51:07,812 DEBUG [paste.httpserver.ThreadPool] Added task
(0 tasks queued)
2011-03-28 10:51:11,286 DEBUG [paste.httpserver.ThreadPool] Added task
(0 tasks queued)
2011-03-28 10:51:11,288 DEBUG [txn.-1298019440] new transaction
2011-03-28 10:51:11,303 DEBUG [txn.-1298019440] commit
2011-03-28 10:51:16,599 DEBUG [paste.httpserver.ThreadPool] Added task
(0 tasks queued)
2011-03-28 10:51:16,603 DEBUG [txn.-1306412144] new transaction
2011-03-28 10:51:16,769 DEBUG [txn.-1306412144] commit <Connection at 0999490c>
2011-03-28 10:51:16,775 DEBUG [txn.-1306412144] commit
I don't really need the messages logged by
[paste.httpserver.ThreadPool] and the ones starting with
[txn.-#########]
This is my parts/etc/debug.ini file:
#==========================================
[DEFAULT]
zope_conf = %(here)s/zope.debug.conf
[server:main]
use = egg:Paste#http
host = 192.168.1.200
port = 8080
[pipeline:main]
pipeline = evalexception fanstatic grok
[filter:accesslogging]
use = egg:Paste#translogger
[filter:evalexception]
use = egg:z3c.evalexception#ajax
[filter:fanstatic]
use = egg:fanstatic#fanstatic
versioning = true
recompute_hashes = true
[app:grok]
use = egg:grokcore.startup#debug
exempt-exceptions = zope.security.interfaces.IUnauthorized
# Logging configuration
[loggers]
keys = root
[logger_root]
level = INFO
handlers = console
[handlers]
keys = console
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatters]
keys = generic
[formatter_generic]
format = %(asctime)s %(levelname)s [%(name)s] %(message)s
#==========================================
Somehow related:
https://mail.zope.org/pipermail/grok-dev/2010-December/010908.html
Thanks in advance.
More information about the Grok-dev
mailing list