Update crontab_api.py

pull/199/head
midoks 3 years ago
parent 2eeef4d8bd
commit 5583db0c70
  1. 2
      class/core/crontab_api.py

@ -167,7 +167,7 @@ class crontab_api:
logFile = mw.getServerDir() + '/cron/' + echo['echo'] + '.log'
if not os.path.exists(logFile):
return mw.returnJson(False, '当前日志为空!')
log = mw.getNumLines(logFile, 500)
log = mw.getLastLine(logFile, 500)
return mw.returnJson(True, log)
def addApi(self):

Loading…
Cancel
Save