1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

fix logging format

This commit is contained in:
kev 2015-07-13 01:01:12 +08:00
parent 0719f68028
commit d6fe693c4d

View File

@ -17,7 +17,7 @@ def download(url):
if __name__ == '__main__':
logging.basicConfig(format='%(asctime)s [%(levelname)s] %(msg)s', datefmt='%FT%T', level='INFO')
logging.basicConfig(format='%(asctime)s [%(levelname)s] %(message)s', datefmt='%FT%T', level='INFO')
logging.info('connect redis')
rdb = redis.StrictRedis(host='redis', password=os.getenv('PASSWORD'))
rdb.ping()