mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-22 13:34:04 +03:00
Fixed tree generation for logs
This commit is contained in:
parent
7c16960d3a
commit
e6778eda38
@ -158,7 +158,7 @@ class Command(BaseCommand):
|
||||
fltr = fltr.filter(state=State.ERROR)
|
||||
for item in fltr[:max_items]: # at most max_items items
|
||||
logs = [
|
||||
f'{l["date"]}: {log.LogLevel.from_str(l["level"])} [{l["source"]}] - {l["message"]}'
|
||||
f'{l["date"]}: {log.LogLevel.from_int(l["level"])} [{l["source"]}] - {l["message"]}'
|
||||
for l in log.get_logs(item)
|
||||
]
|
||||
userservices[item.friendly_name] = {
|
||||
|
Loading…
Reference in New Issue
Block a user