<feed xmlns='http://www.w3.org/2005/Atom'>
<title>phosphor-logging/tools, branch master</title>
<subtitle>OpenBMC Phosphor logging library sources (not useful for felling trees)</subtitle>
<id>https://git.raptorcs.com/git/phosphor-logging/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/phosphor-logging/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/'/>
<updated>2019-08-13T15:24:53+00:00</updated>
<entry>
<title>Empty set for no elog lookup meta data</title>
<updated>2019-08-13T15:24:53+00:00</updated>
<author>
<name>Matthew Barth</name>
<email>msbarth@us.ibm.com</email>
</author>
<published>2019-08-13T15:24:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=52a4980c5024e8a812e4c69942a4aeb315904870'/>
<id>urn:sha1:52a4980c5024e8a812e4c69942a4aeb315904870</id>
<content type='text'>
Create an empty set when there is no elog lookup meta data instead of
defaulting to add a single empty string entry.

Tested:
    Built image and verified empty string no longer in errors where no
meta data is defined.

Change-Id: I7bf1ff2ab18f174d4cfa78cf22eeac4918033148
Signed-off-by: Matthew Barth &lt;msbarth@us.ibm.com&gt;
</content>
</entry>
<entry>
<title>Remove empty entries in elog lookup meta data</title>
<updated>2019-08-12T20:22:01+00:00</updated>
<author>
<name>Matthew Barth</name>
<email>msbarth@us.ibm.com</email>
</author>
<published>2019-08-12T20:22:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=19fe323b6a36950af43058694e91457cc64dd709'/>
<id>urn:sha1:19fe323b6a36950af43058694e91457cc64dd709</id>
<content type='text'>
A journal entry is produced for failure to find empty string meta data
for elogs due to an empty string entry within the generated elog lookup
source. This empty string is due to error yamls that do not contain any
meta data entry of their own and only inherit from another error yaml.

An example of the journal entry for the empty string meta data that is
removed with this fix::

    CODE_LINE=76
    CODE_FUNC=helper_log
    _SYSTEMD_SLICE=system.slice
    CODE_FILE=../git/phosphor-logging/log.hpp
    MESSAGE=Failed to find metadata
    TRANSACTION_ID=4016514682
    META_FIELD=
    SYSLOG_IDENTIFIER=phosphor-log-manager
    _PID=181
    _COMM=phosphor-log-ma
    _EXE=/usr/bin/phosphor-log-manager

Tested:
    Built image and verified empty string entry no longer generated on
errors without meta data but inherit meta data from other error yaml

Change-Id: I3c8745acd86173873827cd59eb6e8d4f687b0e1b
Signed-off-by: Matthew Barth &lt;msbarth@us.ibm.com&gt;
</content>
</entry>
<entry>
<title>tools/elog-gen: Clean up missing error metadata message</title>
<updated>2018-10-05T02:17:39+00:00</updated>
<author>
<name>William A. Kennington III</name>
<email>wak@google.com</email>
</author>
<published>2018-10-05T01:58:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=b17e8768da6db65dc7e96f07995256a666dc83f5'/>
<id>urn:sha1:b17e8768da6db65dc7e96f07995256a666dc83f5</id>
<content type='text'>
Change-Id: I880cf6793e64db29a6eee74839f5a5bdabb1dff2
Signed-off-by: William A. Kennington III &lt;wak@google.com&gt;
</content>
</entry>
<entry>
<title>elog-gen: allow inherits from errors without meta</title>
<updated>2018-07-20T09:02:20+00:00</updated>
<author>
<name>Lei YU</name>
<email>mine260309@gmail.com</email>
</author>
<published>2018-07-19T02:29:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=80aa4762f78f1044d15c918d72316aa388ba0a02'/>
<id>urn:sha1:80aa4762f78f1044d15c918d72316aa388ba0a02</id>
<content type='text'>
Previously, elog-gen only support inherits from errors that have meta,
and if we inherit from an error without meta, e.g.
Common.InternalFailure, we get build error like:

    KeyError: 'xyz.openbmc_project.Common.InternalFailure'

This commit makes elog-gen to allow such case, so it is possible to
allow a base error without meta, and inheriting error with additional
error, e.g.

    # In Common:
    - name: NotAllowed  ## No meta

    # In Time:
    - name: NotAllowed
      inherits:
        - xyz.openbmc_project.Common.NotAllowed
      meta:
        - str: "OWNER=%s"
          type: string
        - str: "SYNC_METHOD=%s"
          type: string

Note: the "inherit" here does not mean the the error inherits from
base errors in c++ class, it just makes error "logically" inherits base
errors. And in future commits we could make it "really" inherits base
errors in c++ level.

Tested: Verify phosphor-logging builds correctly with above example
        error interfaces, and service is able to use such errors with
        elog.

Change-Id: I8dccd7112881e3eb77a8f6ec62a532062348d2ef
Signed-off-by: Lei YU &lt;mine260309@gmail.com&gt;
</content>
</entry>
<entry>
<title>templates: Allow use of -fsanitize=undefined</title>
<updated>2018-03-07T14:10:55+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2018-03-07T00:33:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=14a8c8de981933fdb362597d7cf989249846ee9f'/>
<id>urn:sha1:14a8c8de981933fdb362597d7cf989249846ee9f</id>
<content type='text'>
Push down the str member to avoid linker errors about the lack of
storage for str when using -fsanitize=undefined.

Change-Id: I1a6b1ba9632aa6e4294573a6be3252d5230992b9
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>Spelling fixes</title>
<updated>2017-10-31T13:36:25+00:00</updated>
<author>
<name>Gunnar Mills</name>
<email>gmills@us.ibm.com</email>
</author>
<published>2017-10-25T22:22:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=deae3cac49b8c3312751017d36abe35e4cf7cfa1'/>
<id>urn:sha1:deae3cac49b8c3312751017d36abe35e4cf7cfa1</id>
<content type='text'>
Spelling errors found using github.com/lucasdemarchi/codespell
A tool to fix common misspellings.
This tool is licensed under GNU General Public License, version 2.

Change-Id: Idea8f76487125a7c7334b415a369c73d9fac40c4
Signed-off-by: Gunnar Mills &lt;gmills@us.ibm.com&gt;
</content>
</entry>
<entry>
<title>fix checkstop error logged as INFO</title>
<updated>2017-06-20T11:31:37+00:00</updated>
<author>
<name>Marri Devender Rao</name>
<email>devenrao@in.ibm.com</email>
</author>
<published>2017-06-18T16:29:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=979632aeb629b4cb62aed276f7422c34cd7983bc'/>
<id>urn:sha1:979632aeb629b4cb62aed276f7422c34cd7983bc</id>
<content type='text'>
Fix lookup mako template to use sdbus++ error name in error level
and error meta map.

Resolves openbmc/openbmc#1800

Change-Id: Id3bd7d8113ad0305f25a8fc321f6b79ab5033bb0
Signed-off-by: Marri Devender Rao &lt;devenrao@in.ibm.com&gt;
</content>
</entry>
<entry>
<title>elog-gen: python3 fixes for print</title>
<updated>2017-06-03T20:48:42+00:00</updated>
<author>
<name>Patrick Williams</name>
<email>patrick@stwcx.xyz</email>
</author>
<published>2017-06-03T20:47:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=4952aa6b52cad69e67db53a7398f15920e7929b3'/>
<id>urn:sha1:4952aa6b52cad69e67db53a7398f15920e7929b3</id>
<content type='text'>
In python3 print requires () wrapping around parameters.

Change-Id: I830ef0d0e8c9e42c1157b708153bf96599346977
Signed-off-by: Patrick Williams &lt;patrick@stwcx.xyz&gt;
</content>
</entry>
<entry>
<title>Remove inheriting from sdbus exception for error metadata</title>
<updated>2017-06-03T13:07:31+00:00</updated>
<author>
<name>Marri Devender Rao</name>
<email>devenrao@in.ibm.com</email>
</author>
<published>2017-05-14T13:33:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=99b33918fa65c3b46987543bcddec76d97beabcc'/>
<id>urn:sha1:99b33918fa65c3b46987543bcddec76d97beabcc</id>
<content type='text'>
For logging/reporting exceptions, applications need to use exceptions
generated by using sdbus++.

For metadata, use header file generated by elog-gen script.

Change-Id: Id8f61f8692bfd694d8875359d883465c1124bedf
Signed-off-by: Marri Devender Rao &lt;devenrao@in.ibm.com&gt;
</content>
</entry>
<entry>
<title>Allow parsing of error yaml files without metadata yaml file</title>
<updated>2017-06-03T13:07:31+00:00</updated>
<author>
<name>Marri Devender Rao</name>
<email>devenrao@in.ibm.com</email>
</author>
<published>2017-05-14T13:30:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=df7cb5c008a98cfee81e7a01e97a81fba86213f0'/>
<id>urn:sha1:df7cb5c008a98cfee81e7a01e97a81fba86213f0</id>
<content type='text'>
At present parser throws error if metadata yaml file is not found,
modified to not to return error.

Restruture the code to loop through the entries in the error
yaml file rather than through the meta yaml file.

Change-Id: Iaae61690201aeffd8d9caa41515b29b7cc0b59a2
Signed-off-by: Marri Devender Rao &lt;devenrao@in.ibm.com&gt;
</content>
</entry>
</feed>
