diff options
author | Aravinda VK <avishwan@redhat.com> | 2017-10-12 11:31:34 +0530 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-11-09 13:24:19 +0000 |
commit | 52add0a289b8433547c5443b0dfd76e157275b10 (patch) | |
tree | 8a0439a43e4f7085ee746966c164b8ec11156d8e /xlators/features/changelog/lib/src/gf-changelog.c | |
parent | 0821a57bd2e7518d1c8df2d4403a2dfbb8ee5b6b (diff) |
features/libgfchangelog: Structured logging support
Structured logging infra is available in logging library with
issue #240. Log messages with dynamic content are identified and
converted to structured logging format(`gf_msg` to `gf_smsg` and
`gf_log` to `gf_slog`)
BUG: 1501054
Change-Id: I99b35396455a634f5267eb1379d481ea981e5494
Signed-off-by: Aravinda VK <avishwan@redhat.com>
Diffstat (limited to 'xlators/features/changelog/lib/src/gf-changelog.c')
-rw-r--r-- | xlators/features/changelog/lib/src/gf-changelog.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xlators/features/changelog/lib/src/gf-changelog.c b/xlators/features/changelog/lib/src/gf-changelog.c index e4ad045599a..6ee87b1414e 100644 --- a/xlators/features/changelog/lib/src/gf-changelog.c +++ b/xlators/features/changelog/lib/src/gf-changelog.c @@ -554,10 +554,12 @@ gf_changelog_register_generic (struct gf_brick_spec *bricks, int count, brick = bricks; while (count--) { - gf_msg (this->name, GF_LOG_INFO, 0, - CHANGELOG_LIB_MSG_NOTIFY_REGISTER_INFO, - "Registering brick: %s [notify filter: %d]", - brick->brick_path, brick->filter); + gf_smsg (this->name, GF_LOG_INFO, 0, + CHANGELOG_LIB_MSG_NOTIFY_REGISTER_INFO, + "Registering brick", + "brick=%s", brick->brick_path, + "notify_filter=%d", brick->filter, + NULL); ret = gf_changelog_register_brick (this, brick, need_order, xl); if (ret != 0) { |