From 52add0a289b8433547c5443b0dfd76e157275b10 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Thu, 12 Oct 2017 11:31:34 +0530 Subject: 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 --- xlators/features/changelog/lib/src/gf-changelog.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'xlators/features/changelog/lib/src/gf-changelog.c') 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) { -- cgit