Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #903 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

Logging handler in sample-prod.cfg gives error

Reported by: arnarbi at gmail.com Owned by: anonymous
Priority: normal Milestone: 1.0b2
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.

Change History

comment:1 Changed 13 years ago by jorge.vargas

comment:2 Changed 13 years ago by jorge.vargas

  • Milestone set to 1.0

anyone else has any comments on this?

comment:3 Changed 13 years ago by jorge.vargas

  • Milestone changed from 1.0 to 1.0b2

comment:4 Changed 12 years ago by alberto

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [2265] in the trunk. It was fixed in [1481] in the stable branch. (Someone forgot to merge... SVN blames you Kevin... ;)

Note: See TracTickets for help on using tickets.