[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11797 - gnunet/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11797 - gnunet/src/fs |
Date: |
Fri, 18 Jun 2010 14:58:40 +0200 |
Author: grothoff
Date: 2010-06-18 14:58:40 +0200 (Fri, 18 Jun 2010)
New Revision: 11797
Modified:
gnunet/src/fs/fs_publish.c
gnunet/src/fs/test_gnunet_fs_rec_data.conf
Log:
logging
Modified: gnunet/src/fs/fs_publish.c
===================================================================
--- gnunet/src/fs/fs_publish.c 2010-06-18 12:06:51 UTC (rev 11796)
+++ gnunet/src/fs/fs_publish.c 2010-06-18 12:58:40 UTC (rev 11797)
@@ -304,6 +304,11 @@
if (NULL != emsg)
{
+#if DEBUG_PUBLISH
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Error uploading KSK blocks: %s\n",
+ emsg);
+#end
signal_publish_error (p, pc, emsg);
GNUNET_FS_file_information_sync_ (p);
GNUNET_FS_publish_sync_ (pc);
@@ -314,6 +319,10 @@
pc);
return;
}
+#if DEBUG_PUBLISH
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "KSK blocks published, moving on to next file\n");
+#endif
if (NULL != p->dir)
signal_publish_completion (p, pc);
/* move on to next file */
@@ -400,7 +409,7 @@
struct GNUNET_FS_FileInformation *p;
struct GNUNET_FS_ProgressInfo pi;
char *emsg;
-
+
p = sc->fi_pos;
GNUNET_FS_tree_encoder_finish (p->te,
&p->chk_uri,
@@ -408,6 +417,11 @@
p->te = NULL;
if (NULL != emsg)
{
+#if DEBUG_PUBLISH
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Error during tree walk: %s\n",
+ emsg);
+#end
GNUNET_asprintf (&p->emsg,
_("Upload failed: %s"),
emsg);
@@ -417,6 +431,10 @@
pi.value.publish.specifics.error.message = p->emsg;
p->client_info = GNUNET_FS_publish_make_status_ (&pi, sc, p, 0);
}
+#if DEBUG_PUBLISH
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Finished with tree encoder\n");
+#endif
/* continue with main */
sc->upload_task
= GNUNET_SCHEDULER_add_with_priority (sc->h->sched,
@@ -455,6 +473,10 @@
p = sc->fi_pos;
if (NULL == sc->dsh)
{
+#if DEBUG_PUBLISH
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Waiting for datastore connection\n");
+#endif
sc->upload_task
= GNUNET_SCHEDULER_add_with_priority (sc->h->sched,
GNUNET_SCHEDULER_PRIORITY_BACKGROUND,
@@ -575,6 +597,10 @@
{
if (p->is_directory)
{
+#if DEBUG_PUBLISH
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Creating directory\n");
+#endif
db = GNUNET_FS_directory_builder_create (p->meta);
dirpos = p->data.dir.entries;
while (NULL != dirpos)
@@ -620,6 +646,10 @@
size = (p->is_directory)
? p->data.dir.dir_size
: p->data.file.file_size;
+#if DEBUG_PUBLISH
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Creating tree encoder\n");
+#endif
p->te = GNUNET_FS_tree_encoder_create (sc->h,
size,
sc,
@@ -629,6 +659,10 @@
&encode_cont);
}
+#if DEBUG_PUBLISH
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Processing next block from tree\n");
+#endif
GNUNET_FS_tree_encoder_next (p->te);
}
@@ -820,6 +854,10 @@
p = pc->fi_pos;
if (NULL == p)
{
+#if DEBUG_PUBLISH
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Upload complete, now publishing SKS and KSK blocks.\n");
+#endif
/* upload of entire hierarchy complete,
publish namespace entries */
GNUNET_FS_publish_sync_ (pc);
@@ -839,6 +877,11 @@
/* abort on error */
if (NULL != p->emsg)
{
+#if DEBUG_PUBLISH
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Error uploading: %s\n",
+ p->emsg);
+#endif
/* error with current file, abort all
related files as well! */
while (NULL != p->dir)
@@ -872,6 +915,10 @@
/* handle completion */
if (NULL != p->chk_uri)
{
+#if DEBUG_PUBLISH
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "File upload complete, now publishing KSK blocks.\n");
+#endif
GNUNET_FS_publish_sync_ (pc);
/* upload of "p" complete, publish KBlocks! */
if (p->keywords != NULL)
Modified: gnunet/src/fs/test_gnunet_fs_rec_data.conf
===================================================================
--- gnunet/src/fs/test_gnunet_fs_rec_data.conf 2010-06-18 12:06:51 UTC (rev
11796)
+++ gnunet/src/fs/test_gnunet_fs_rec_data.conf 2010-06-18 12:58:40 UTC (rev
11797)
@@ -19,6 +19,7 @@
DEFAULTSERVICES =
[datastore]
+PORT = 44472
# DEBUG = YES
[statistics]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11797 - gnunet/src/fs,
gnunet <=