Prechádzať zdrojové kódy

app_python3: enable error log mode for some of missing callback functions

- tm-specific callbacks should trigger error log messages if not found
Daniel-Constantin Mierla 1 rok pred
rodič
commit
695dc54dc1
1 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 4 4
      src/modules/app_python3/apy_kemi.c

+ 4 - 4
src/modules/app_python3/apy_kemi.c

@@ -71,19 +71,19 @@ int sr_kemi_config_engine_python(
 		}
 		}
 	} else if(rtype == BRANCH_ROUTE) {
 	} else if(rtype == BRANCH_ROUTE) {
 		if(rname != NULL && rname->s != NULL) {
 		if(rname != NULL && rname->s != NULL) {
-			ret = apy_exec(msg, rname->s, NULL, 0);
+			ret = apy_exec(msg, rname->s, NULL, 1);
 		}
 		}
 	} else if(rtype == FAILURE_ROUTE) {
 	} else if(rtype == FAILURE_ROUTE) {
 		if(rname != NULL && rname->s != NULL) {
 		if(rname != NULL && rname->s != NULL) {
-			ret = apy_exec(msg, rname->s, NULL, 0);
+			ret = apy_exec(msg, rname->s, NULL, 1);
 		}
 		}
 	} else if(rtype == BRANCH_FAILURE_ROUTE) {
 	} else if(rtype == BRANCH_FAILURE_ROUTE) {
 		if(rname != NULL && rname->s != NULL) {
 		if(rname != NULL && rname->s != NULL) {
-			ret = apy_exec(msg, rname->s, NULL, 0);
+			ret = apy_exec(msg, rname->s, NULL, 1);
 		}
 		}
 	} else if(rtype == TM_ONREPLY_ROUTE) {
 	} else if(rtype == TM_ONREPLY_ROUTE) {
 		if(rname != NULL && rname->s != NULL) {
 		if(rname != NULL && rname->s != NULL) {
-			ret = apy_exec(msg, rname->s, NULL, 0);
+			ret = apy_exec(msg, rname->s, NULL, 1);
 		}
 		}
 	} else if(rtype == ONSEND_ROUTE) {
 	} else if(rtype == ONSEND_ROUTE) {
 		if(kemi_onsend_route_callback.len > 0) {
 		if(kemi_onsend_route_callback.len > 0) {