Messages can't be DETAIL alone so pair with DEFAULT
This commit is contained in:
parent
7e0075dcbb
commit
063c8d664f
24 changed files with 84 additions and 83 deletions
|
|
@ -188,7 +188,7 @@ json_current_new(clixon_json_yacc *jy,
|
|||
char *prefix = NULL;
|
||||
char *id = NULL;
|
||||
|
||||
clixon_debug(CLIXON_DBG_DETAIL, "%s", __FUNCTION__);
|
||||
clixon_debug(CLIXON_DBG_DEFAULT | CLIXON_DBG_DETAIL, "%s", __FUNCTION__);
|
||||
/* Find colon separator and if found split into prefix:name */
|
||||
if (nodeid_split(name, &prefix, &id) < 0)
|
||||
goto done;
|
||||
|
|
@ -215,7 +215,7 @@ json_current_new(clixon_json_yacc *jy,
|
|||
static int
|
||||
json_current_pop(clixon_json_yacc *jy)
|
||||
{
|
||||
clixon_debug(CLIXON_DBG_DETAIL, "%s", __FUNCTION__);
|
||||
clixon_debug(CLIXON_DBG_DEFAULT | CLIXON_DBG_DETAIL, "%s", __FUNCTION__);
|
||||
if (jy->jy_current)
|
||||
jy->jy_current = xml_parent(jy->jy_current);
|
||||
return 0;
|
||||
|
|
@ -226,7 +226,7 @@ json_current_clone(clixon_json_yacc *jy)
|
|||
{
|
||||
cxobj *xn;
|
||||
|
||||
clixon_debug(CLIXON_DBG_DETAIL, "%s", __FUNCTION__);
|
||||
clixon_debug(CLIXON_DBG_DEFAULT | CLIXON_DBG_DETAIL, "%s", __FUNCTION__);
|
||||
if (jy->jy_current == NULL){
|
||||
return -1;
|
||||
}
|
||||
|
|
@ -258,7 +258,7 @@ json_current_body(clixon_json_yacc *jy,
|
|||
int retval = -1;
|
||||
cxobj *xn;
|
||||
|
||||
clixon_debug(CLIXON_DBG_DETAIL, "%s", __FUNCTION__);
|
||||
clixon_debug(CLIXON_DBG_DEFAULT | CLIXON_DBG_DETAIL, "%s", __FUNCTION__);
|
||||
if ((xn = xml_new("body", jy->jy_current, CX_BODY)) == NULL)
|
||||
goto done;
|
||||
if (value && xml_value_append(xn, value) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue