[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.
- [GNUnet-SVN] [taler-taler-util] 27/51: syntax, (continued)
- [GNUnet-SVN] [taler-taler-util] 27/51: syntax, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 34/51: 4453. Test for GNUNET_LOG and GNUNET_FORCE_LOG both defined., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 39/51: Log: fix line interval parsing (care about one number case.), gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 31/51: 4453. Test only manual loglevel setup., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 28/51: Testing 4453 with unittest. First batch., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 43/51: Add a .dir-locals, el for configuring emacs for this project, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 44/51: ux, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 46/51: gitignore, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 36/51: Remove old test, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 45/51: rename., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 35/51: 4453. Fix GNUNET_FORCE_LOG priority.,
gnunet <=
- [GNUnet-SVN] [taler-taler-util] 40/51: Doxygen-commenting gnunet_log.py, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 41/51: Doxygen-comment logger test cases., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 42/51: Importing the Doxygen-commented config from the bank., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 47/51: rename., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 51/51: wrap-up, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 48/51: README, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 49/51: move around., gnunet, 2019/09/23