MCPcopy
hub / github.com/borgbackup/borg / debug_log

Function debug_log

src/borg/hlfuse.py:41–46  ·  view source on GitHub ↗

Append debug message to fuse_debug.log

(msg)

Source from the content-addressed store, hash-verified

39
40
41def 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
49class DirEntry:

Callers 10

statfsMethod · 0.85
getattrMethod · 0.85
listxattrMethod · 0.85
getxattrMethod · 0.85
openMethod · 0.85
releaseMethod · 0.85
createMethod · 0.85
readMethod · 0.85
readdirMethod · 0.85
readlinkMethod · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected