[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-taler-util] 26/51: 4453. Check against further field
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-taler-util] 26/51: 4453. Check against further fields (filename, func, lineno) |
Date: |
Mon, 23 Sep 2019 22:02:17 +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 ad5c2a210e7bf39a8351955d6cfc254d4cf9af78
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Feb 6 19:16:57 2019 +0100
4453. Check against further fields (filename, func, lineno)
---
python/log/gnunet_log.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/python/log/gnunet_log.py b/python/log/gnunet_log.py
index 748fb82..c37787a 100755
--- a/python/log/gnunet_log.py
+++ b/python/log/gnunet_log.py
@@ -124,11 +124,11 @@ class GnunetLogger:
# and non-given loglevel at object creation time)
for defi in self.definitions:
if defi.forced or not self.loglevel:
- # Temporarily checking only the component name.
- # To be extended with all the others definition-parts.
- if re.match(defi.component, self.component):
- self.logger.setLevel(
-
level=self.string_to_loglevel(defi.loglevel).getLevel())
+ if re.match(defi.component, self.component) \
+ and re.match(defi.filename, filename) \
+ and re.match(defi.function, function) \
+ and defi.line_interval["min"] <= lineno <=
defi.line_interval["max"]
+
self.logger.setLevel(level=self.string_to_loglevel(defi.loglevel).getLevel())
message_loglevel.getFunction()(message)
return
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [taler-taler-util] 04/51: add talerconfig and linted amount, (continued)
- [GNUnet-SVN] [taler-taler-util] 04/51: add talerconfig and linted amount, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 06/51: remove old config, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 07/51: Update "config" module (with one that implements @INLINE@)., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 14/51: log test, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 12/51: make map static, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 25/51: 4453. Parsing line interval., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 11/51: Towards a usable solution for #4453., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 13/51: Give loglevels dedicate class + test., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 16/51: Updating Amount from bank., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 19/51: Parsing GNUNET_FORCE_LOGFILE., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 26/51: 4453. Check against further fields (filename, func, lineno),
gnunet <=
- [GNUnet-SVN] [taler-taler-util] 17/51: 4453., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 24/51: fix filename extraction., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 18/51: 4453., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 20/51: 4453., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 22/51: 4453, use regex., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 15/51: Update amount., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 21/51: 4453., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 23/51: fetch caller's metadata., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 29/51: rename function, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 30/51: Testing env var GNUNET_LOG., gnunet, 2019/09/23