Added debug level INIT

This commit is contained in:
Olof hagsand 2024-02-17 22:16:56 +01:00
parent 3b0b734de1
commit ff171afd65
14 changed files with 45 additions and 42 deletions

View file

@ -1050,7 +1050,7 @@ main(int argc,
goto ok;
/* Debug dump of config options */
clicon_option_dump(h, 1);
clicon_option_dump(h, CLIXON_DBG_INIT);
/* Daemonize and initiate logging. Note error is initiated here to make
daemonized errors OK. Before this stage, errors are logged on stderr

View file

@ -983,7 +983,6 @@ yang2cli_container(clixon_handle h,
cprintf(cb, ", hide");
}
cprintf(cb, ", act-container;{\n");
}
/* Is schema mount-point? */
if (clicon_option_bool(h, "CLICON_YANG_SCHEMA_MOUNT")){
@ -1315,8 +1314,9 @@ yang2cli_stmt(clixon_handle h,
goto done;
break;
case Y_USES:
if (grouping_treeref && !cornercase && yang2cli_uses(h, ys, level, cb) < 0)
goto done;
if (grouping_treeref && !cornercase)
if (yang2cli_uses(h, ys, level, cb) < 0)
goto done;
break;
case Y_CASE:
case Y_SUBMODULE:

View file

@ -894,7 +894,7 @@ main(int argc,
goto done;
}
/* Debug dump of config options */
clicon_option_dump(h, 1);
clicon_option_dump(h, CLIXON_DBG_INIT);
cligen_line_scrolling_set(cli_cligen(h), clicon_option_int(h,"CLICON_CLI_LINESCROLLING"));
/* Start CLI history and load from file */

View file

@ -923,7 +923,7 @@ main(int argc,
goto ok;
}
/* Debug dump of config options */
clicon_option_dump(h, 1);
clicon_option_dump(h, CLIXON_DBG_INIT);
/* Send hello request to backend to get session-id back
* This is done once at the beginning of the session and then this is

View file

@ -574,7 +574,7 @@ main(int argc,
goto ok;
}
/* Dump configuration options on debug */
clicon_option_dump(h, 1);
clicon_option_dump(h, CLIXON_DBG_INIT);
/* Call start function in all plugins before we go interactive */
if (clixon_plugin_start_all(h) < 0)

View file

@ -839,7 +839,7 @@ restconf_openssl_init(clixon_handle h,
/* If debug was enabled here from config and not initially,
* print clixn options and loaded yang files
*/
clicon_option_dump(h, 1);
clicon_option_dump(h, CLIXON_DBG_INIT);
}
if ((x = xpath_first(xrestconf, nsc, "enable-core-dump")) != NULL) {
/* core dump is enabled on RESTCONF process */
@ -1318,7 +1318,7 @@ main(int argc,
goto ok;
}
/* Dump configuration options on debug */
clicon_option_dump(h, 1);
clicon_option_dump(h, CLIXON_DBG_INIT);
/* Initialize plugin module by creating a handle holding plugin and callback lists */
if (clixon_plugin_module_init(h) < 0)

View file

@ -553,7 +553,7 @@ main(int argc,
goto done;
goto ok;
}
clicon_option_dump(h, 1);
clicon_option_dump(h, CLIXON_DBG_INIT);
/* Send hello request to backend to get session-id back
* This is done once at the beginning of the session and then this is