diff options
author | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-01-17 04:25:22 -0600 |
---|---|---|
committer | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-01-27 10:42:17 -0600 |
commit | 160d3e0b810f6c5f582c7daf906ce0c99cd4194e (patch) | |
tree | 6c918b816030b51e3c927583002a10d92a7aa66e /logging_test.cpp | |
parent | 9916119f0daad8bd5b3fbd926ada9a023949f311 (diff) | |
download | phosphor-logging-160d3e0b810f6c5f582c7daf906ce0c99cd4194e.tar.gz phosphor-logging-160d3e0b810f6c5f582c7daf906ce0c99cd4194e.zip |
elog-gen.py : read multiple error yaml files
This change enables the elog-gen script to look at more than one error
yaml file (and corresponding metadata yaml file). The input to the
script had to be changed to a yaml directory, containing
error yaml files, instead of a single error yaml file.
The reason to support reading multiple error yaml files is that,
without this, applications have to all dump their errors in a single big
error yaml file. Now it's possible to write application/domain specific
error yaml files; they just need to be exported to the same location,
from where elog-gen.py can pick them.
Change-Id: I9418bf0e0b54a7b7f7701b337649cb8eb4c54913
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'logging_test.cpp')
-rw-r--r-- | logging_test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/logging_test.cpp b/logging_test.cpp index 55d7d45..b781482 100644 --- a/logging_test.cpp +++ b/logging_test.cpp @@ -75,21 +75,21 @@ int main() const char *test_string = "/tmp/test_string/"; try { - elog<xyz::openbmc_project::Example::Error::TestErrorOne>( - xyz::openbmc_project::Example::Error::TestErrorOne:: + elog<example::xyz::openbmc_project::Example::TestErrorOne>( + example::xyz::openbmc_project::Example::TestErrorOne:: ERRNUM(number), - xyz::openbmc_project::Example::Error::TestErrorOne:: + example::xyz::openbmc_project::Example::TestErrorOne:: FILE_PATH(test_string), - xyz::openbmc_project::Example::Error::TestErrorOne:: + example::xyz::openbmc_project::Example::TestErrorOne:: FILE_NAME("elog_test_3.txt")); } - catch (elogException<xyz::openbmc_project::Example::Error::TestErrorOne>& e) + catch (elogException<example::xyz::openbmc_project::Example::TestErrorOne>& e) { std::cout << "elog exception caught: " << e.what() << std::endl; } // Reduce our error namespaces - using namespace xyz::openbmc_project::Example::Error; + using namespace example::xyz::openbmc_project::Example; // Now read back and verify our data made it into the journal std::stringstream stream; |