]> git.puffer.fish Git - mirror/frr.git/commit
lib: fix setting temporary log options for libyang 15430/head
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 26 Feb 2024 09:30:57 +0000 (11:30 +0200)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 26 Feb 2024 09:30:57 +0000 (11:30 +0200)
commit3cd6ddaec6fd41ac84ef23595ffc7e3d18334839
tree534070fd00cb53f600a45539db286f0172aee8a1
parent2bc8ae0d6a6d21e68e07484bc00893d4d9aeb0b7
lib: fix setting temporary log options for libyang

By calling `ly_log_options` with `LY_LOSTORE`, the current code
effectively disables libyang logging and never enables it back. The call
is done to get the current logging options, but we don't really need
that. When looking for a schema node, we don't want neither to log nor
to store the error, so simply set the temporary options to 0.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/northbound.c