Another try for fixing Py 2.6 value error in logging.