Commit 3545b0ee082682e54a653bb72ea97cbf2f060fdd
1 parent
c3421fce
Implemement logger methods with chattiness level for the Python interface
Showing
1 changed file
with
3 additions
and
4 deletions
pyext/GApplication.i
| ... | ... | @@ -108,10 +108,9 @@ public: |
| 108 | 108 | ***************************************************************************/ |
| 109 | 109 | %pythoncode %{ |
| 110 | 110 | # Log the value of a parameter |
| 111 | -def _log_value(self, name, value): | |
| 112 | - self._log.parformat(str(name)) | |
| 113 | - self._log(str(value)) | |
| 114 | - self._log('\n') | |
| 111 | +def _log_value(self, chatter, name, value): | |
| 112 | + string = gammalib.parformat(str(name))+str(value)+'\n' | |
| 113 | + self._log_string(chatter, string) | |
| 115 | 114 | GApplication._log_value = _log_value |
| 116 | 115 | %} |
| 117 | 116 | ... | ... |