Skip to content

Commit 394e0eb

Browse files
committed
ly_log_options() is not made available via libyang-python, but it does set it to LY_LOSTORE by default (LY_LOLOG) is disabled which is what this was intending
1 parent c9e1867 commit 394e0eb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/sonic-yang-mgmt/sonic_yang.py

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ def __init__(self, yang_dir, debug=False, print_log_enabled=True):
2222
self.SYSLOG_IDENTIFIER = "sonic_yang"
2323
self.DEBUG = debug
2424
self.print_log_enabled = print_log_enabled
25-
if not print_log_enabled:
26-
# The default libyang log options are ly.LY_LOLOG|ly.LY_LOSTORE_LAST.
27-
# Removing ly.LY_LOLOG will stop libyang from printing the logs.
28-
ly.set_log_options(ly.LY_LOSTORE_LAST)
2925

3026
# yang model files, need this map it to module
3127
self.yangFiles = list()

0 commit comments

Comments
 (0)