sent dbus signal and log to syslog on each oops, not just once per batch
authorChris Leech <christopher.leech@linux.intel.com>
Fri, 1 Apr 2011 23:54:26 +0000 (16:54 -0700)
committerChris Leech <christopher.leech@linux.intel.com>
Fri, 1 Apr 2011 23:54:26 +0000 (16:54 -0700)
Signed-off-by: Chris Leech <christopher.leech@linux.intel.com>
submit.c

index d3f0e52..c90fb1c 100644 (file)
--- a/submit.c
+++ b/submit.c
@@ -242,6 +242,8 @@ void submit_queue_with_url(char *wsubmit_url)
                result = curl_easy_perform(handle);
 
                curl_formfree(post);
+               dbus_say_thanks(result_url);
+
                next = oops->next;
                free(oops->text);
                free(oops);
@@ -254,8 +256,6 @@ void submit_queue_with_url(char *wsubmit_url)
        if (count && !testmode)
                write_logfile(count, wsubmit_url);
 
-       if (count)
-               dbus_say_thanks(result_url);
        /*
         * If we've reached the maximum count, we'll exit the program,
         * the program won't do any useful work anymore going forward.