Re: Disable verbose logging in getPage

[email protected]
Newsgroups gmane.comp.python.twisted.web
Message-ID <20101220154057.5919.1969624880.divmod.xquotient.176@localhost.localdomain>
On 08:18 am, [email protected] wrote:
>Hi,
>
>I have written a small script which uses getPage, and I would like to
>disable the verbose getPage output ([HTTPPageGetter,client] Starting
>factory / [HTTPPageGetter,client] Stoping factory pairs).

You can disable the logging process-wide by setting 
HTTPClientFactory.noisy to False.  You can do it on a per-request basis 
by implementing your own getPage, and setting noisy to False on the 
HTTPClientFactory instance it creates.

Agent has less annoying logging stuff, and some other nice features too, 
so if it satisfies your use cases, you might want to use it instead.

Jean-Paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.