gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: do not warn when GNUNET_DISK_file_test c


From: gnunet
Subject: [gnunet] branch master updated: do not warn when GNUNET_DISK_file_test can't access file
Date: Thu, 29 Jul 2021 16:17:46 +0200

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

dold pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new b69774cba do not warn when GNUNET_DISK_file_test can't access file
b69774cba is described below

commit b69774cba0ec55ad0c0000c183eee5d8c01d8363
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Jul 29 16:13:16 2021 +0200

    do not warn when GNUNET_DISK_file_test can't access file
    
    Callers already warn here.  Warning if a file can't be found leads to
    output that's too verbose, as GNUNET_DISK_file_test isn't only called when
    we expect the file to exist.
---
 src/util/disk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/disk.c b/src/util/disk.c
index 1b6934082..bc7be8960 100644
--- a/src/util/disk.c
+++ b/src/util/disk.c
@@ -455,7 +455,7 @@ file_test_internal (const char *fil, int amode)
   {
     if (errno != ENOENT)
     {
-      LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "stat", rdir);
+      LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_DEBUG, "stat", rdir);
       GNUNET_free (rdir);
       return GNUNET_SYSERR;
     }
@@ -469,7 +469,7 @@ file_test_internal (const char *fil, int amode)
   }
   if (access (rdir, amode) < 0)
   {
-    LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "access", rdir);
+    LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_DEBUG, "access", rdir);
     GNUNET_free (rdir);
     return GNUNET_SYSERR;
   }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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