1
0
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:
Adolfo Gómez García 2024-04-10 20:56:52 +02:00
parent 7c16960d3a
commit e6778eda38
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -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] = {