#2246: tg/configuration.py passes a logging.Logger instead of expected stream
object
------------------------+---------------------------------------------------
Reporter: amol | Owner:
Type: defect | Status: closed
Priority: normal | Milestone: 2.0rc1
Component: TurboGears | Version: 2.0b6
Severity: normal | Resolution: invalid
Keywords: |
------------------------+---------------------------------------------------
Changes (by Gustavo):
* status: new => closed
* resolution: => invalid
Comment:
Recent versions of repoze.who's !PluggableAuthenticationMiddleware support
both a stream and a logger itself:
{{{
if isinstance(log_stream, logging.Logger):
self.logger = log_stream
elif log_stream:
handler = logging.StreamHandler(log_stream)
fmt = '%(asctime)s %(message)s'
formatter = logging.Formatter(fmt)
handler.setFormatter(formatter)
self.logger = logging.Logger('repoze.who')
self.logger.addHandler(handler)
self.logger.setLevel(log_level)
}}}
You seem to be using an old version of repoze.who. Please upgrade (the
latest one, as of this writing, is 1.0.10):
{{{
easy_install -U repoze.who
}}}
If you still get this error, please use the turbogears-trunk mailing list
and don't forget to include a traceback.
--
Ticket URL: <http://trac.turbogears.org/ticket/2246#comment:1>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---