`ctf` plugin: metadata: use local log level
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 17 Jun 2019 23:20:08 +0000 (19:20 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 20 Jun 2019 18:01:16 +0000 (14:01 -0400)
commit0746848ce8b40484254eeace3962a7654d01c7bc
treecd9d1d5a569ebedae2a69abeb1699f732a8a77a7
parentea14c7dd641ec094a4c63e2f6de59aab8cbb8603
`ctf` plugin: metadata: use local log level

As of this patch, the users of the common metadata functions and objects
set the new log level parameters to their own (global) log level.

The goal is to eventually have a per-component log level for the `ctf`
plugin's component classes.

Unfortunately, `YYFPRINTF` and `YY_FATAL_ERROR` are pretty limited in
terms of available context. I'm leaving the
`BABELTRACE_PLUGIN_CTF_METADATA_LOG_LEVEL` environment variable to set
the logging level of the parser and lexer modules.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I34651e6d0c14b5acc9b4198681c2aea4c003dc7a
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1490
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
25 files changed:
src/plugins/ctf/common/metadata/ast.h
src/plugins/ctf/common/metadata/ctf-meta-resolve.c
src/plugins/ctf/common/metadata/ctf-meta-translate.c
src/plugins/ctf/common/metadata/ctf-meta-update-default-clock-classes.c
src/plugins/ctf/common/metadata/ctf-meta-update-in-ir.c
src/plugins/ctf/common/metadata/ctf-meta-update-meanings.c
src/plugins/ctf/common/metadata/ctf-meta-update-stream-class-config.c
src/plugins/ctf/common/metadata/ctf-meta-update-text-array-sequence.c
src/plugins/ctf/common/metadata/ctf-meta-update-value-storing-indexes.c
src/plugins/ctf/common/metadata/ctf-meta-validate.c
src/plugins/ctf/common/metadata/ctf-meta-visitors.h
src/plugins/ctf/common/metadata/ctf-meta-warn-meaningless-header-fields.c
src/plugins/ctf/common/metadata/decoder.c
src/plugins/ctf/common/metadata/decoder.h
src/plugins/ctf/common/metadata/lexer.l
src/plugins/ctf/common/metadata/logging.c
src/plugins/ctf/common/metadata/logging.h
src/plugins/ctf/common/metadata/objstack.c
src/plugins/ctf/common/metadata/parser.y
src/plugins/ctf/common/metadata/visitor-generate-ir.c
src/plugins/ctf/common/metadata/visitor-parent-links.c
src/plugins/ctf/common/metadata/visitor-semantic-validator.c
src/plugins/ctf/fs-src/metadata.c
src/plugins/ctf/fs-src/query.c
src/plugins/ctf/lttng-live/metadata.c
This page took 0.026752 seconds and 4 git commands to generate.