X-Git-Url: http://git.vrable.net/?p=bluesky.git;a=blobdiff_plain;f=bluesky%2Flog.c;h=ccc9a7a712bafc698ae17dfcc87cff6b50f2e2e9;hp=9d2550a7951fb1b611ebda28bfa61ea44e43aace;hb=b52abd849493636b81dda8c752a60834f1a6b91f;hpb=d8063ef47f939dee4095d4d9e98b7feceade980c diff --git a/bluesky/log.c b/bluesky/log.c index 9d2550a..ccc9a7a 100644 --- a/bluesky/log.c +++ b/bluesky/log.c @@ -34,10 +34,6 @@ * only incompletely written out before a crash, which should only happen for * log records that were not considered committed). */ -// Rough size limit for a log segment. This is not a firm limit and there are -// no absolute guarantees on the size of a log segment. -#define LOG_SEGMENT_SIZE (1 << 22) - #define HEADER_MAGIC 0x676f4c0a #define FOOTER_MAGIC 0x2e435243 @@ -501,8 +497,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) {