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-api.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'xlators/features/changelog/lib/src/gf-changelog-api.c') diff --git a/xlators/features/changelog/lib/src/gf-changelog-api.c b/xlators/features/changelog/lib/src/gf-changelog-api.c index 71312f4ce95..372550c7acf 100644 --- a/xlators/features/changelog/lib/src/gf-changelog-api.c +++ b/xlators/features/changelog/lib/src/gf-changelog-api.c @@ -55,10 +55,12 @@ gf_changelog_done (char *file) "moving %s to processed directory", file); ret = sys_rename (buffer, to_path); if (ret) { - gf_msg (this->name, GF_LOG_ERROR, errno, - CHANGELOG_LIB_MSG_RENAME_FAILED, - "cannot move %s to %s", - file, to_path); + gf_smsg (this->name, GF_LOG_ERROR, errno, + CHANGELOG_LIB_MSG_RENAME_FAILED, + "cannot move changelog file", + "from=%s", file, + "to=%s", to_path, + NULL); goto out; } -- cgit