Opened 9 years ago

Last modified 9 years ago

#5926 defect new

AMP protocol logs "connection established" and can't be made quiet

Reported by: talljosh Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:
Author:

Description

The AMP class in twisted.protocols.amp logs the host and peer whenever a connection is established, and there's no way of suppressing this logging.

It would be nice if the class had an attribute to control its logging, similar to the noisy attribute in the base Factory and AbstractDatagramProtocol classes.

Change History (1)

comment:1 Changed 9 years ago by Glyph

The noisy attribute is incredibly inflexible, and is not exposed to users of Twisted, only to applications. I would rather not further replicate this antipattern.

There is a ticket for generally improving the state of logging, and this ticket could serve as a nice motivating use-case for that.

Note: See TracTickets for help on using tickets.