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

Method loadDebugLog

python/cinbase/debug.py:30–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 return os.path.join(self.getConfigDir(), name)
29
30 def loadDebugLog(self):
31 jsondata = {}
32 filename = self.getConfigFile()
33 if os.path.isfile(filename):
34 try:
35 with open(filename, 'r', encoding='utf8') as f:
36 jsondata = json.load(f)
37 except Exception:
38 pass # FIXME: handle I/O errors?
39 self.debugLog = copy.deepcopy(jsondata)
40 return jsondata
41
42 def setStartTimer(self, timerName):
43 self.startTime[timerName] = time.time()

Callers 1

initTextServiceMethod · 0.80

Calls 2

getConfigFileMethod · 0.95
loadMethod · 0.45

Tested by

no test coverage detected