vici: Reduce debug level during thread spawning
authorMartin Willi <martin@revosec.ch>
Thu, 9 Oct 2014 14:14:38 +0000 (16:14 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 10 Oct 2014 09:42:18 +0000 (11:42 +0200)
We want to avoid libvici users to get a cluttered stderr for no real error.

src/libcharon/plugins/vici/libvici.c

index 54b8cc5..20b0074 100644 (file)
@@ -754,7 +754,9 @@ void vici_init()
        library_init(NULL, "vici");
        if (lib->processor->get_total_threads(lib->processor) < 4)
        {
        library_init(NULL, "vici");
        if (lib->processor->get_total_threads(lib->processor) < 4)
        {
+               dbg_default_set_level(0);
                lib->processor->set_threads(lib->processor, 4);
                lib->processor->set_threads(lib->processor, 4);
+               dbg_default_set_level(1);
        }
 }
 
        }
 }