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

Method _move_logs

class/projectModel/javaModel.py:5320–5325  ·  view source on GitHub ↗
(self, s_file, target_file)

Source from the content-addressed store, hash-verified

5318 public.writeFile("/usr/local/bttomcat/tomcat%s/conf/logpath.conf" % version, _path)
5319
5320 def _move_logs(self, s_file, target_file):
5321 if os.path.getsize(s_file) > 3145928:
5322 res = self.last_lines(s_file, 3000)
5323 public.WriteFile(target_file, res)
5324 else:
5325 shutil.copyfile(s_file, target_file)
5326
5327 def _check_old(self, project_info):
5328 if project_info['project_config']['java_type'] == 'springboot':

Callers 1

_update_projectMethod · 0.95

Calls 1

last_linesMethod · 0.95

Tested by

no test coverage detected