Fixed Debug -D msg: dont show length in detailed debug

This commit is contained in:
Olof hagsand 2024-11-27 10:55:34 +01:00
parent 4c57edfc57
commit be5a7c418a
5 changed files with 25 additions and 16 deletions

View file

@ -739,7 +739,7 @@ from_client_edit_config(clixon_handle h,
}
/* Clixon extension: copy */
if ((attr = xml_find_value(xn, "copystartup")) != NULL &&
strcmp(attr,"true") == 0){
strcmp(attr, "true") == 0){
if (xmldb_copy(h, "running", "startup") < 0){
if (netconf_operation_failed(cbret, "application", clixon_err_reason())< 0)
goto done;

View file

@ -476,7 +476,7 @@ netconf_input_cb(int s,
cbmsg = NULL;
break;
}
if (clixon_debug_isset(CLIXON_DBG_DETAIL))
if (clixon_debug_detail())
clixon_debug(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL, "Recv ext: %s", cbuf_get(cbmsg));
else
clixon_debug(CLIXON_DBG_MSG, "Recv ext len: %lu", cbuf_len(cbmsg));