diff options
author | David Sommerseth <davids@redhat.com> | 2010-02-05 15:33:39 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2010-02-05 15:33:39 +0100 |
commit | 5ebf67efee2893c4d3dc60ec31a0efeb0894d245 (patch) | |
tree | 337c4ff23b1498096e64179dadddf8b39a81e340 /src/dmixml.c | |
parent | 24af40698f1486c899333ea1f129e87590cdee7e (diff) | |
download | python-dmidecode-5ebf67efee2893c4d3dc60ec31a0efeb0894d245.tar.gz python-dmidecode-5ebf67efee2893c4d3dc60ec31a0efeb0894d245.tar.xz python-dmidecode-5ebf67efee2893c4d3dc60ec31a0efeb0894d245.zip |
Added logging flag to log_append() to change log behaviour
Valid flags are:
* LOGFL_NORMAL
Log all messages to the log context, and send log message to stderr
on errors
* LOGFL_NODUPS
Log only unique messages. Duplicated messages will be removed
* LOGFL_NOSTDERR
Don't write to stderr, even if errors occur
Diffstat (limited to 'src/dmixml.c')
-rw-r--r-- | src/dmixml.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dmixml.c b/src/dmixml.c index 6f1fd77..6f6aa60 100644 --- a/src/dmixml.c +++ b/src/dmixml.c @@ -352,9 +352,9 @@ char *dmixml_GetXPathContent(Log_t *logp, char *buf, size_t buflen, xmlXPathObje break; default: - log_append(logp, LOG_WARNING, "dmixml_GetXPathContent(...):: " - "Do not know how to handle XPath type %i\n", - xpo->type); + log_append(logp, LOGFL_NORMAL, LOG_WARNING, "dmixml_GetXPathContent(...):: " + "Do not know how to handle XPath type %i\n", + xpo->type); return NULL; } return buf; |