diff options
author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-09-04 06:26:30 -0500 |
---|---|---|
committer | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-09-12 04:16:59 -0500 |
commit | d0f0064eb989a93e241c599641654f12141ef636 (patch) | |
tree | 3bd1ea132595363caa1e2dcf8c1fa9ab01cc65ef /dump_manager.cpp | |
parent | d44513c248ef68f6a1e2bc80c925e992b4d38865 (diff) | |
download | phosphor-debug-collector-d0f0064eb989a93e241c599641654f12141ef636.tar.gz phosphor-debug-collector-d0f0064eb989a93e241c599641654f12141ef636.zip |
Capture dump when an error with the name InternalFailure is logged
Change-Id: I2a362b674022dbe1ea8bfe16876d0416f87d0af1
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Diffstat (limited to 'dump_manager.cpp')
-rw-r--r-- | dump_manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dump_manager.cpp b/dump_manager.cpp index bf2e0a2..6ac636d 100644 --- a/dump_manager.cpp +++ b/dump_manager.cpp @@ -44,7 +44,8 @@ uint32_t Manager::captureDump( //Type to dreport type string map static const std::map<Type, std::string> typeMap = {{Type::ApplicationCored, "core"}, - {Type::UserRequested, "user"}}; + {Type::UserRequested, "user"}, + {Type::InternalFailure, "elog"}}; //Get Dump size. auto size = getAllowedSize(); |