MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / get_log

Method get_log

mod/project/python/serviceMod.py:344–356  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

342 self.py_main.only_stop_main_project(self.env.project_name)
343
344 def get_log(self) -> str:
345 if not self.env:
346 raise RuntimeError('未设置环境')
347 get_obj = public.dict_obj()
348 get_obj.name = self.env.project_name
349 res = self.py_main.GetProjectLog(get_obj)
350 data = None
351 if res['status']:
352 data = res['data']
353
354 if not data:
355 return '暂无日志'
356 return data
357
358 def get_info(self):
359 res = super().get_info()

Callers

nothing calls this directly

Calls 1

GetProjectLogMethod · 0.80

Tested by

no test coverage detected