MCPcopy Create free account
hub / github.com/EasyIME/PIME / saveDebugLog

Method saveDebugLog

python/cinbase/debug.py:52–59  ·  view source on GitHub ↗
(self, debugLog)

Source from the content-addressed store, hash-verified

50 return str(durationTime)
51
52 def saveDebugLog(self, debugLog):
53 filename = self.getConfigFile()
54 try:
55 with open(filename, 'w', encoding='utf8') as f:
56 js = json.dump(debugLog, f, ensure_ascii=False, sort_keys=True, indent=4)
57 self.debugLog = copy.deepcopy(debugLog)
58 except Exception:
59 pass # FIXME: handle I/O errors?
60
61__all__ = ["Debug"]

Callers 1

checkConfigChangeMethod · 0.80

Calls 1

getConfigFileMethod · 0.95

Tested by

no test coverage detected