[Bf-blender-cvs] [c1f8b3af5e3] soc-2020-info-editor: Cleanup: Activate dead log

Mateusz Grzeliński noreply at git.blender.org
Wed Jul 1 13:00:32 CEST 2020


Commit: c1f8b3af5e3e2b4b35602f4009ecaad8a666fa90
Author: Mateusz Grzeliński
Date:   Wed Jul 1 12:51:26 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rBc1f8b3af5e3e2b4b35602f4009ecaad8a666fa90

Cleanup: Activate dead log

===================================================================

M	source/blender/python/intern/bpy_msgbus.c

===================================================================

diff --git a/source/blender/python/intern/bpy_msgbus.c b/source/blender/python/intern/bpy_msgbus.c
index 7bfc0fce5d4..95936885021 100644
--- a/source/blender/python/intern/bpy_msgbus.c
+++ b/source/blender/python/intern/bpy_msgbus.c
@@ -19,6 +19,8 @@
  * This file defines '_bpy_msgbus' module, exposed as 'bpy.msgbus'.
  */
 
+#include <CLG_log.h>
+#include <MEM_guardedalloc.h>
 #include <Python.h>
 
 #include "../generic/py_capi_utils.h"
@@ -305,9 +307,7 @@ static PyObject *bpy_msgbus_subscribe_rna(PyObject *UNUSED(self), PyObject *args
 
   WM_msg_subscribe_rna_params(mbus, &msg_key_params, &msg_val_params, __func__);
 
-  if (0) { /* For debugging. */
-    WM_msg_log_str(mbus);
-  }
+  CLOG_STR_INFO_N(WM_LOG_MSGBUS_SUB, 4, WM_msg_sprintN(mbus));
 
   Py_RETURN_NONE;
 }



More information about the Bf-blender-cvs mailing list