summaryrefslogtreecommitdiffstats
path: root/src/elog.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/elog.hpp')
-rw-r--r--src/elog.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/elog.hpp b/src/elog.hpp
index 996fd58..24e2009 100644
--- a/src/elog.hpp
+++ b/src/elog.hpp
@@ -154,6 +154,12 @@ class ElogWithMetadataCapture : public IndexedCallback
*/
void operator()(Context ctx) override
{
+ if (ctx == Context::START)
+ {
+ // No action should be taken as this call back is being called from
+ // daemon Startup.
+ return;
+ }
auto data = captureMetadata();
phosphor::logging::report<errorType>(metadataType(data.c_str()));
OpenPOWER on IntegriCloud