media-export: Use debug if cancelled
authorJens Georg <mail@jensge.org>
Sat, 28 Aug 2010 04:22:21 +0000 (07:22 +0300)
committerJens Georg <mail@jensge.org>
Sat, 28 Aug 2010 04:32:37 +0000 (07:32 +0300)
Check if the error during harvesting is due to a cancelled cancellable

src/plugins/media-export/rygel-media-export-harvesting-task.vala

index fa9bb33..a4c8675 100644 (file)
@@ -110,9 +110,14 @@ public class Rygel.MediaExport.HarvestingTask : Rygel.StateMachine, GLib.Object
                 this.completed ();
             }
         } catch (Error error) {
-            warning (_("Failed to harvest file %s: %s"),
-                     this.origin.get_uri (),
-                     error.message);
+            if (!(error is IOError.CANCELLED)) {
+                warning (_("Failed to harvest file %s: %s"),
+                         this.origin.get_uri (),
+                         error.message);
+            } else {
+                debug ("Harvesting of uri %s was cancelled",
+                       this.origin.get_uri ());
+            }
             this.completed ();
         }
     }