diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-07-08 16:11:50 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-07-08 16:11:50 +0300 |
| commit | 7614ac3b88cb172eafadea0755a5706c10ac7bc7 (patch) | |
| tree | 36f06c6b60f461889cce76f234d7d72d1883c2f4 | |
| parent | ae3babdb6f7a50c7b4a00cd86cf9ee281e453d2d (diff) | |
Logging timestamps
| -rw-r--r-- | modes.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -18,7 +18,7 @@ MATRIX_PIXEL_SIZE = 80 MATRIX_OFFSET = ((1181 - (MATRIX_PIXEL_SIZE * MATRIX_SIZE)) / 2, 300) PRINTER = 'Canon_iP7200_series' -logging.basicConfig(filename='modes.log', filemode='a', level=logging.INFO) +logging.basicConfig(filename='modes.log', filemode='a', level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S') logging.getLogger('requests').setLevel(logging.WARNING) # suppress requests stuff r = redis.StrictRedis(host='localhost', port=6379, db=0) |
