(type="Exception", msg="")
| 1564 | |
| 1565 | |
| 1566 | def log_timestamp(type="Exception", msg=""): |
| 1567 | # method log_timestamp prints timestamp with custom message |
| 1568 | print("%s [%s] %s" % (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), type, msg), |
| 1569 | file=sys.stderr) |