[Grok-dev] Don't log ThreadPool messages
Jan-Jaap Driessen
jdriessen at thehealthagency.com
Mon Mar 28 16:40:59 EDT 2011
On 28 March 2011 16:57, Hector Blanco <white.lists at gmail.com> wrote:
> 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.
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev
Hi Hector,
When I compare the paster config you include in your email to the
paster configuration of a default grokproject install, the only
difference I see is in the pipeline: your example is missing the
accesslogging filter.
When I copy your config to my grokproject install and run bin/paster,
I don't see the verbosity you describe. I am at a loss and without
access to your machine there's not much I can do.
Does anybody else have any idea?
-- JJ
More information about the Grok-dev
mailing list