diff --git a/web/utils/adult_log.py b/web/utils/adult_log.py index f1b4e4a80..303a99417 100644 --- a/web/utils/adult_log.py +++ b/web/utils/adult_log.py @@ -134,7 +134,7 @@ def parseAuditFile(log_name, result): log_list.append(_line) return log_list -def getAuditLast(self, log_name): +def getAuditLast(log_name): # 获取日志 cmd = '''LANG=en_US.UTF-8 last -n 200 -x -f {} |grep -v 127.0.0.1|grep -v " begins"'''.format( '/var/log/' + log_name)