X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fcloudlog.c;h=fb83e02b1d8a58061d385330e6f075b94f58af9a;hb=f596f1356cc523ace9ae6d2f91f08f982bae455b;hp=b6ee07f190342a64e857e1799f4514146d1092b7;hpb=e9da632729d04d23ae7f4be4c3fcdd7c1c432e85;p=bluesky.git diff --git a/bluesky/cloudlog.c b/bluesky/cloudlog.c index b6ee07f..fb83e02 100644 --- a/bluesky/cloudlog.c +++ b/bluesky/cloudlog.c @@ -340,6 +340,10 @@ void bluesky_cloudlog_fetch(BlueSkyCloudLog *log) if (log->data != NULL) return; + BlueSkyProfile *profile = bluesky_profile_get(); + if (profile != NULL) + bluesky_profile_add_event(profile, g_strdup_printf("Fetch log entry")); + /* There are actually two cases: a full deserialization if we have not ever * read the object before, and a partial deserialization where the metadata * is already in memory and we just need to remap the data. If the object @@ -353,10 +357,6 @@ void bluesky_cloudlog_fetch(BlueSkyCloudLog *log) bluesky_string_unref(raw); } - BlueSkyProfile *profile = bluesky_profile_get(); - if (profile != NULL) - bluesky_profile_add_event(profile, g_strdup_printf("Fetch log entry")); - /* At this point all metadata should be available and we need only remap * the object data. */ log->data = bluesky_log_map_object(log, TRUE);