mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-20 08:25:50 +08:00
Update adult_log.py
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user