[pve-devel] [PATCH firewall] print error message in case of 'error catching nfct'

David Limbeck d.limbeck at proxmox.com
Wed Jan 9 14:37:27 CET 2019


Signed-off-by: David Limbeck <d.limbeck at proxmox.com>
---
I couldn't reproduce it here locally. Could you try it with this patch
applied? This should print the error message (You will have to pull the
latest changes from our repository though, as a bug in
log_status_message was fixed).

 src/pvefw-logger.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pvefw-logger.c b/src/pvefw-logger.c
index 9c6fe4a..79d4d57 100644
--- a/src/pvefw-logger.c
+++ b/src/pvefw-logger.c
@@ -954,7 +954,7 @@ nfct_read_cb(GIOChannel *source,
 {
     int res;
     if ((res = nfct_catch(nfcth)) < 0) {
-        log_status_message(3, "error catching nfct");
+        log_status_message(3, "error catching nfct: %s", strerror(errno));
         return FALSE;
     }
     return TRUE;
-- 
2.11.0





More information about the pve-devel mailing list