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-api.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-api.c')
-rw-r--r-- | xlators/features/changelog/lib/src/gf-changelog-api.c | 10 |
1 files changed, 6 insertions, 4 deletions
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; } |