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