diff options
| author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-09-04 00:48:02 -0500 |
|---|---|---|
| committer | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-09-12 02:09:06 -0500 |
| commit | db18ebe01d588a128aebbd7b1bb8767cfb46b1e9 (patch) | |
| tree | 8a1d42f7dabd0bc1f1fcf6d23a2645c7ea3299b8 /log_manager.cpp | |
| parent | 7656fba39d7bef754ee38a1d9a7889e7d3309db4 (diff) | |
| download | phosphor-logging-db18ebe01d588a128aebbd7b1bb8767cfb46b1e9.tar.gz phosphor-logging-db18ebe01d588a128aebbd7b1bb8767cfb46b1e9.zip | |
Add _PID information in elog AdditionalData
dreport need PID information to collect process specific journal
for InternalFailure type error triggered dump.
Change-Id: I313caa4795f7c0d47c1f42dae0653008cdbd5967
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Diffstat (limited to 'log_manager.cpp')
| -rw-r--r-- | log_manager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/log_manager.cpp b/log_manager.cpp index 29c0ffe..b535039 100644 --- a/log_manager.cpp +++ b/log_manager.cpp @@ -71,6 +71,9 @@ void Manager::commit(uint64_t transactionId, std::string errMsg) metalist.insert(metamap->second.begin(), metamap->second.end()); } + //Add _PID field information in AdditionalData. + metalist.insert("_PID"); + std::vector<std::string> additionalData; // Read the journal from the end to get the most recent entry first. |

