Return entryID on commiting logs
Let the Commit()/CommitWithLvl() methods return entryID, so that the
caller of commit()/report() could get the entryID directly without
querying the logging service again.
This is useful in cases that the caller needs to know the entryID of the
commit()/report() events.
Tested: Manually verify the report() returns the correct entryID.
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: Ieb22d32d4e9242ec46b799f6e98ca3d49e7590b9
diff --git a/xyz/openbmc_project/Logging/Internal/Manager.interface.yaml b/xyz/openbmc_project/Logging/Internal/Manager.interface.yaml
index 4c1c8ce..6ab85c5 100644
--- a/xyz/openbmc_project/Logging/Internal/Manager.interface.yaml
+++ b/xyz/openbmc_project/Logging/Internal/Manager.interface.yaml
@@ -18,6 +18,11 @@
description: >
The error exception message associated with the error
event log to be committed.
+ returns:
+ - name: entryID
+ type: uint32
+ description: >
+ The ID of the entry.
- name: CommitWithLvl
description: >
Write the requested error/event entry with its associated metadata
@@ -37,3 +42,8 @@
type: uint32
description: >
The error level/severity indicator.
+ returns:
+ - name: entryID
+ type: uint32
+ description: >
+ The ID of the entry.