saltstack/salt — pull request #2860 by s0undt3ch (2012-12-11 10:18:28+00:00)
Title: Don't assume digits in logging format strings. Refs #2859, fixes #2853.

Sorry @ryanschneider for stepping in on your fix.

Nothing is assumed now, and several checks are made. If any of the checks fail, nothing else is done in [`salt.log.Logging.__new__()`](https://github.com/saltstack/salt/blob/a704410cbc0ae00346949808d079db04bac5da19/salt/log.py#L86).
Added a test case which will take care of possible regressions on this bug fix.