gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

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