[gvfs] job: Add missing send_reply debug messages



commit e9070ff78cc22945dcaeda9c4a0281dd75c5c0cf
Author: Ondrej Holy <oholy redhat com>
Date:   Tue Mar 20 16:11:22 2018 +0100

    job: Add missing send_reply debug messages
    
    GVfsJobQueryInfoRead and GVfsJobQueryInfoWrite doesn't print debug
    info in send_reply as other jobs. Let's add the missing debug messages.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=794487

 daemon/gvfsjobqueryinforead.c  |    5 ++++-
 daemon/gvfsjobqueryinfowrite.c |    5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsjobqueryinforead.c b/daemon/gvfsjobqueryinforead.c
index 3e04d79..920eb29 100644
--- a/daemon/gvfsjobqueryinforead.c
+++ b/daemon/gvfsjobqueryinforead.c
@@ -100,7 +100,10 @@ static void
 send_reply (GVfsJob *job)
 {
   GVfsJobQueryInfoRead *op_job = G_VFS_JOB_QUERY_INFO_READ (job);
-  
+
+  g_debug ("send_reply(%p), failed=%d (%s)\n", job, job->failed,
+           job->failed ? job->error->message : "");
+
   if (job->failed)
     g_vfs_channel_send_error (G_VFS_CHANNEL (op_job->channel), job->error);
   else
diff --git a/daemon/gvfsjobqueryinfowrite.c b/daemon/gvfsjobqueryinfowrite.c
index 474cbfd..0caf538 100644
--- a/daemon/gvfsjobqueryinfowrite.c
+++ b/daemon/gvfsjobqueryinfowrite.c
@@ -100,7 +100,10 @@ static void
 send_reply (GVfsJob *job)
 {
   GVfsJobQueryInfoWrite *op_job = G_VFS_JOB_QUERY_INFO_WRITE (job);
-  
+
+  g_debug ("send_reply(%p), failed=%d (%s)\n", job, job->failed,
+           job->failed ? job->error->message : "");
+
   if (job->failed)
     g_vfs_channel_send_error (G_VFS_CHANNEL (op_job->channel), job->error);
   else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]