gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated (bda8f61b0 -> f37f5b281)


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated (bda8f61b0 -> f37f5b281)
Date: Sat, 22 Jun 2019 00:46:02 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a change to branch master
in repository gnunet.

    from bda8f61b0 Doc RPS: Fix writing style of GNUnet
     new 8137c9abc sectioning fix
     new f37f5b281 avoid pk operation unless logging enabled

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 doc/handbook/chapters/user.texi          |  2 +-
 src/namestore/gnunet-service-namestore.c | 20 ++++++++++++++++----
 2 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/doc/handbook/chapters/user.texi b/doc/handbook/chapters/user.texi
index 7fb63b9a7..c69f19922 100644
--- a/doc/handbook/chapters/user.texi
+++ b/doc/handbook/chapters/user.texi
@@ -926,7 +926,7 @@ concepts that are used to achieve these goals.
 * Files::
 * Keywords::
 * Directories::
-* Pseudonyms::
+* Egos::
 * Namespaces::
 * Advertisements::
 * Anonymity level::
diff --git a/src/namestore/gnunet-service-namestore.c 
b/src/namestore/gnunet-service-namestore.c
index d2a09087e..1de3a3edf 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -615,10 +615,22 @@ get_nick_record (const struct 
GNUNET_CRYPTO_EcdsaPrivateKey *zone)
   if ( (GNUNET_OK != res) ||
        (NULL == nick) )
   {
-    GNUNET_CRYPTO_ecdsa_key_get_public (zone, &pub);
-    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG | GNUNET_ERROR_TYPE_BULK,
-                "No nick name set for zone `%s'\n",
-                GNUNET_GNSRECORD_z2s (&pub));
+    static int do_log = GNUNET_LOG_CALL_STATUS;
+
+    if (0 == do_log)
+      do_log
+       = GNUNET_get_log_call_status (GNUNET_ERROR_TYPE_DEBUG,
+                                     "namestore",
+                                     __FILE__,
+                                     __FUNCTION__,
+                                     __LINE__);
+    if (1 == do_log)
+    {
+      GNUNET_CRYPTO_ecdsa_key_get_public (zone, &pub);
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG | GNUNET_ERROR_TYPE_BULK,
+                 "No nick name set for zone `%s'\n",
+                 GNUNET_GNSRECORD_z2s (&pub));
+    }
     return NULL;
   }
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]