From 3545b0ee082682e54a653bb72ea97cbf2f060fdd Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 3 Aug 2016 15:22:50 +0200 Subject: [PATCH] Implemement logger methods with chattiness level for the Python interface --- pyext/GApplication.i | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pyext/GApplication.i b/pyext/GApplication.i index eadb5a5..87d6be1 100644 --- a/pyext/GApplication.i +++ b/pyext/GApplication.i @@ -108,10 +108,9 @@ public: ***************************************************************************/ %pythoncode %{ # Log the value of a parameter -def _log_value(self, name, value): - self._log.parformat(str(name)) - self._log(str(value)) - self._log('\n') +def _log_value(self, chatter, name, value): + string = gammalib.parformat(str(name))+str(value)+'\n' + self._log_string(chatter, string) GApplication._log_value = _log_value %} -- libgit2 0.21.4