Append debug message to fuse_debug.log
(msg)
| 39 | |
| 40 | |
| 41 | def debug_log(msg): |
| 42 | """Append debug message to fuse_debug.log""" |
| 43 | if DEBUG_LOG: |
| 44 | timestamp = datetime.datetime.now().strftime("%H:%M:%S.%f")[:-3] |
| 45 | with open(DEBUG_LOG, "a") as f: |
| 46 | f.write(f"{timestamp} {msg}\n") |
| 47 | |
| 48 | |
| 49 | class DirEntry: |