Drop another debugging message in non-verbose mode
authorMichael Vrable <mvrable@cs.ucsd.edu>
Fri, 11 Mar 2011 20:11:58 +0000 (12:11 -0800)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Fri, 11 Mar 2011 20:11:58 +0000 (12:11 -0800)
bluesky/log.c

index 9d2550a..7728720 100644 (file)
@@ -501,8 +501,9 @@ static void cloudlog_partial_fetch_start(BlueSkyCacheFile *cachefile,
 static void cloudlog_partial_fetch_complete(BlueSkyStoreAsync *async,
                                             BlueSkyCacheFile *cachefile)
 {
-    g_print("Fetch of %s from cloud complete, status = %d\n",
-            async->key, async->result);
+    if (bluesky_verbose || async->result != 0)
+        g_print("Fetch of %s from cloud complete, status = %d\n",
+                async->key, async->result);
 
     g_mutex_lock(cachefile->lock);
     if (async->result >= 0) {