I ran into an issue with the logging configuration in the sample-prod.cfg file generated by quickstart.  Whenever I used the sample configuration in my actual prod.cfg file, no server log would be written, and the following traceback was found repeatedly in the stderr stream:

Traceback (most recent call last):
  File "C:\Python24\lib\logging\__init__.py", line 737, in emit
    self.stream.write(fs % msg)
AttributeError: 'str' object has no attribute 'write'

I believe that a simple change to the default configuration will make this work as intended (at least it did for me).  Instead of specifying 'StreamHandler' as the class to use with the file name args, use a 'FileHandler' instead:

[[[access_out]]]
# set the filename as the first argument below
args="('server.log',)"
class='FileHandler'    #<--- Changed from 'StreamHandler'
level='INFO'
formatter='message_only'

Thanks,

Sean

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to