|
@@ -8,6 +8,7 @@
|
|
#include <faux/file.h>
|
|
#include <faux/file.h>
|
|
#include <faux/argv.h>
|
|
#include <faux/argv.h>
|
|
|
|
|
|
|
|
+#include <libyang/log.h>
|
|
#include <sysrepo.h>
|
|
#include <sysrepo.h>
|
|
#include <sysrepo/xpath.h>
|
|
#include <sysrepo/xpath.h>
|
|
|
|
|
|
@@ -67,6 +68,10 @@ int main(int argc, char **argv)
|
|
if (cmd_opts->cfg)
|
|
if (cmd_opts->cfg)
|
|
pline_opts_parse_file(cmd_opts->cfg, &opts);
|
|
pline_opts_parse_file(cmd_opts->cfg, &opts);
|
|
|
|
|
|
|
|
+ // Turn off libyang warnings
|
|
|
|
+ ly_log_level(LY_LLERR);
|
|
|
|
+ ly_log_options(LY_LOSTORE);
|
|
|
|
+
|
|
// Prepare argv structure for current sysrepo path
|
|
// Prepare argv structure for current sysrepo path
|
|
if (cmd_opts->current_path) {
|
|
if (cmd_opts->current_path) {
|
|
cur_path = faux_argv_new();
|
|
cur_path = faux_argv_new();
|