mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
simplified records
This commit is contained in:
parent
6e0819bdd2
commit
44966f95e6
1 changed files with 13 additions and 20 deletions
|
|
@ -519,26 +519,19 @@ class PublisherController:
|
|||
instance_name = instance.data["name"]
|
||||
|
||||
for record in result.get("records") or []:
|
||||
if isinstance(record, dict):
|
||||
print("is dict")
|
||||
record_item = record
|
||||
else:
|
||||
record_item = {
|
||||
"instance": instance_name,
|
||||
"type": "record",
|
||||
"label": str(record.msg),
|
||||
"msg": str(record.msg),
|
||||
"name": record.name,
|
||||
"lineno": record.lineno,
|
||||
"levelno": record.levelno,
|
||||
"levelname": record.levelname,
|
||||
"threadName": record.threadName,
|
||||
"filename": record.filename,
|
||||
"pathname": record.pathname,
|
||||
"msecs": record.msecs
|
||||
}
|
||||
|
||||
record_item["instance"] = instance_name
|
||||
record_item = {
|
||||
"instance": instance_name,
|
||||
"type": "record",
|
||||
"msg": str(record.msg),
|
||||
"name": record.name,
|
||||
"lineno": record.lineno,
|
||||
"levelno": record.levelno,
|
||||
"levelname": record.levelname,
|
||||
"threadName": record.threadName,
|
||||
"filename": record.filename,
|
||||
"pathname": record.pathname,
|
||||
"msecs": record.msecs
|
||||
}
|
||||
output.append(record_item)
|
||||
|
||||
return output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue