#903: Logging handler in sample-prod.cfg gives error
----------------------------------+-----------------------------------------
Reporter: arnarbi at gmail.com | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: TurboGears | Version: 0.9a6
Severity: normal | Keywords:
----------------------------------+-----------------------------------------
In sample-prod.cfg (source:/trunk/turbogears/qstemplates/quickstart
/sample-prod.cfg_tmpl#1368, line 52) a ''StreamHandler'' is used to log to
server.log. When running a project with this configuration, the following
exception is raised on logging:
{{{
Traceback (most recent call last):
File "/usr/lib/python2.4/logging/__init__.py", line 712, in emit
self.stream.write(fs % msg)
AttributeError: 'str' object has no attribute 'write'
}}}
Changing the ''StreamHandler'' to ''FileHandler'' seems to fix the
problem.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/903>
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.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---