marrow / mailer

A light-weight, modular, message representation and mail delivery framework for Python.
MIT License
276 stars 62 forks source link

Fixed traceback with debugging logger #50

Closed dsx closed 11 years ago

dsx commented 11 years ago

Armoured against this:

2012-10-18 16:11:53,090 INFO  [marrow.mailer.manager.dynamic][MainThread] Dynamic manager starting up.
Traceback (most recent call last):
  File "/some/path/bin/mailer-daemon", line 9, in <module>
    load_entry_point('superproject==0.0', 'console_scripts', 'mailer-daemon')()
  File "/some/path/superproject/scripts/mailer.py", line 112, in main
    mailer.start()
  File "/some/path/lib/python2.7/site-packages/marrow/mailer/__init__.py", line 118, in start
    self.manager.startup()
  File "/some/path/lib/python2.7/site-packages/marrow/mailer/manager/dynamic.py", line 169, in startup
    log.debug("Starting thread pool with %d workers." % (workers, ))
TypeError: %d format: a number is required, not str