Update adult_log.py

This commit is contained in:
Mr Chen
2024-11-01 19:04:14 +08:00
parent 205bb47101
commit 39b3936eca
+1 -1
View File
@@ -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)