diff --git a/include/dap_chain_wallet_python.h b/include/dap_chain_wallet_python.h
index 52b033c9cd17a06e085d119c93061aeb1e216e2d..d0b43398dbd38190121524277b5343c9b58f3a57 100644
--- a/include/dap_chain_wallet_python.h
+++ b/include/dap_chain_wallet_python.h
@@ -14,8 +14,6 @@
 extern "C"{
 #endif
 
-#undef LOG_TAG
-#define LOG_TAG "dap_chain_wallet_python"
 
 typedef struct PyDapChainWallet{
     PyObject_HEAD
diff --git a/src/dap_chain_wallet_python.c b/src/dap_chain_wallet_python.c
index df71af90e3f61d967522875adfc213398406d9e2..bea9ed3ecb26b375a7fae3d0c28354fac67224b9 100644
--- a/src/dap_chain_wallet_python.c
+++ b/src/dap_chain_wallet_python.c
@@ -1,4 +1,5 @@
 #include "dap_chain_wallet_python.h"
+#define LOG_TAG "dap_chain_wallet_python"
 
 int dap_chain_wallet_init_py(void){
     return dap_chain_wallet_init();