X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fs3store.c;h=ccf08780017ef5b5c2992ad0a1b6a13b7d20a862;hb=1c12fd8fc5ede1bb2e991ba65e2c59831c5718c5;hp=bf7c7cdbf807b3fa48fb0a4e2b97d2350c20218b;hpb=c6d5eb1086d5da2a2e7548c5ce3b5efa9ba76f0c;p=bluesky.git diff --git a/bluesky/s3store.c b/bluesky/s3store.c index bf7c7cd..ccf0878 100644 --- a/bluesky/s3store.c +++ b/bluesky/s3store.c @@ -59,7 +59,6 @@ static int s3store_put_handler(int bufferSize, char *buffer, static S3Status s3store_properties_callback(const S3ResponseProperties *properties, void *callbackData) { - g_print("(Properties callback)\n"); return S3StatusOK; } @@ -69,14 +68,11 @@ static void s3store_response_callback(S3Status status, { struct get_info *info = (struct get_info *)callbackData; - g_print("S3 operation complete, status=%s, now=%ld\n", - S3_get_status_name(status), bluesky_now_hires()); - if (status == 0) { info->success = 1; } - if (errorDetails != NULL) { + if (errorDetails != NULL && errorDetails->message != NULL) { g_print(" Error message: %s\n", errorDetails->message); } } @@ -86,7 +82,6 @@ static void s3store_task(gpointer a, gpointer s) BlueSkyStoreAsync *async = (BlueSkyStoreAsync *)a; S3Store *store = (S3Store *)s; - g_print("Start task [key=%s]...\n", async->key); async->status = ASYNC_RUNNING; if (async->op == STORE_OP_GET) { @@ -99,7 +94,6 @@ static void s3store_task(gpointer a, gpointer s) handler.responseHandler.completeCallback = s3store_response_callback; handler.getObjectDataCallback = s3store_get_handler; - g_print("Starting fetch of %s from S3...\n", async->key); S3_get_object(&store->bucket, async->key, NULL, 0, 0, NULL, &handler, &info); @@ -128,8 +122,6 @@ static void s3store_task(gpointer a, gpointer s) handler.responseHandler.completeCallback = s3store_response_callback; handler.putObjectDataCallback = s3store_put_handler; - g_print("Starting store of %s to S3 at %ld...\n", - async->key, bluesky_now_hires()); S3_put_object(&store->bucket, async->key, encrypted->len, NULL, NULL, &handler, &info); @@ -138,7 +130,6 @@ static void s3store_task(gpointer a, gpointer s) async->result = 0; } - g_print("Finish task...\n"); bluesky_store_async_mark_complete(async); bluesky_store_async_unref(async); }