gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-taler-util] 35/51: 4453. Fix GNUNET_FORCE_LOG priori


From: gnunet
Subject: [GNUnet-SVN] [taler-taler-util] 35/51: 4453. Fix GNUNET_FORCE_LOG priority.
Date: Mon, 23 Sep 2019 22:02:26 +0200

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

ng0 pushed a commit to branch master
in repository taler-util.

commit b6ed4f199084469ecdf2abdef1a9975606a542b3
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Feb 7 14:54:50 2019 +0100

    4453.  Fix GNUNET_FORCE_LOG priority.
---
 python/log/gnunet_log.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/python/log/gnunet_log.py b/python/log/gnunet_log.py
index 8b5134a..82233cf 100755
--- a/python/log/gnunet_log.py
+++ b/python/log/gnunet_log.py
@@ -70,13 +70,14 @@ class GnunetLogger:
         self.no_forced_definitions = True
         self.definitions = list()
 
-        if os.environ.get("GNUNET_LOG"):
-            self.__parse_definitions(os.environ.get("GNUNET_LOG"), False)
-
+        # Give priority to the forced env.
         if os.environ.get("GNUNET_FORCE_LOG"):
             self.no_forced_definitions = False
             self.__parse_definitions(os.environ.get("GNUNET_FORCE_LOG"), True)
 
+        if os.environ.get("GNUNET_LOG"):
+            self.__parse_definitions(os.environ.get("GNUNET_LOG"), False)
+
         if os.environ.get("GNUNET_FORCE_LOGFILE"):
             filename = 
self.parse_filename(os.environ.get("GNUNET_FORCE_LOGFILE"))
             fh = logging.FileHandler(filename)

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



reply via email to

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