Python: Logging TypeError: not all arguments converted during string formatting,logging.info('date={}'.format(date))