diff CodeAnalysis/Class.mustache @ 28:b2bbb516056e

The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 27 Apr 2020 07:59:35 +0200
parents 7ed502b17b8f
children 23f3099bed47
line wrap: on
line diff
--- a/CodeAnalysis/Class.mustache	Tue Apr 07 07:52:07 2020 +0200
+++ b/CodeAnalysis/Class.mustache	Mon Apr 27 07:59:35 2020 +0200
@@ -48,7 +48,7 @@
 static int sdk_{{class_name}}_Constructor(
   sdk_{{class_name}}_Object *self, PyObject *args, PyObject *kwds)
 {
-  OrthancPlugins::LogInfo("Creating Python object of class {{class_name}}");
+  PythonLock::LogCall("Creating Python object of class {{class_name}}");
 
   self->object_ = NULL;
   self->borrowed_ = false;
@@ -85,7 +85,7 @@
 {{#destructor}}
 static void sdk_{{class_name}}_Destructor(PyObject *self)
 {
-  OrthancPlugins::LogInfo("Destroying Python object of class {{class_name}}");
+  PythonLock::LogCall("Destroying Python object of class {{class_name}}");
 
   sdk_{{class_name}}_Object& tmp = *((sdk_{{class_name}}_Object*) self);
   
@@ -106,7 +106,7 @@
 static PyObject *sdk_{{class_name}}_{{c_function}}(
   sdk_{{class_name}}_Object* self, PyObject *args)
 {
-  OrthancPlugins::LogInfo("Calling method {{c_function}}() on object of class {{class_name}}");
+  PythonLock::LogCall("Calling method {{c_function}}() on object of class {{class_name}}");
 
   if (self->object_ == NULL)
   {