mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Use global var
This commit is contained in:
parent
624c7eaf77
commit
bd064e317e
1 changed files with 1 additions and 1 deletions
|
@ -407,7 +407,7 @@ class OperationLogger(object):
|
|||
# 4. if among those file, there's an operation log file, we use the id
|
||||
# of the most recent file
|
||||
|
||||
recent_operation_logs = sorted(glob.iglob("/var/log/yunohost/categories/operation/*.log"), key=os.path.getctime, reverse=True)[:20]
|
||||
recent_operation_logs = sorted(glob.iglob(OPERATIONS_PATH + "*.log"), key=os.path.getctime, reverse=True)[:20]
|
||||
|
||||
proc = psutil.Process().parent()
|
||||
while proc is not None:
|
||||
|
|
Loading…
Add table
Reference in a new issue