URL: https://github.com/SSSD/sssd/pull/5897
Author: alexey-tikhonov
 Title: #5897: Monitor: reduce log severity and add error
Action: opened

PR body:
"""
text in case of fail to read from netlink fd.
"""

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5897/head:pr5897
git checkout pr5897
From 150c24adf12739d53ae2250f5d7ee0106dc01119 Mon Sep 17 00:00:00 2001
From: Alexey Tikhonov <atikh...@redhat.com>
Date: Tue, 30 Nov 2021 20:44:50 +0100
Subject: [PATCH] Monitor: reduce log severity and add error text in case of
 fail to read from netlink fd.

---
 src/monitor/monitor_netlink.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/monitor/monitor_netlink.c b/src/monitor/monitor_netlink.c
index e884589cc8..ca66ea7e0c 100644
--- a/src/monitor/monitor_netlink.c
+++ b/src/monitor/monitor_netlink.c
@@ -776,7 +776,8 @@ static void netlink_fd_handler(struct tevent_context *ev, struct tevent_fd *fde,
 
     ret = nl_recvmsgs_default(nlctx->nlp);
     if (ret != EOK) {
-        DEBUG(SSSDBG_CRIT_FAILURE, "Error while reading from netlink fd\n");
+        DEBUG(SSSDBG_OP_FAILURE, "Error while reading from netlink fd: %s\n",
+              nlw_geterror(ret));
         return;
     }
 }
_______________________________________________
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to