Skip to content

Commit 7f42379

Browse files
committed
debug
1 parent f3f3f21 commit 7f42379

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sonic-yang-mgmt/sonic_yang.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -577,12 +577,12 @@ def find_data_dependencies(self, data_xpath):
577577
if required_value is not None:
578578
search_xpath = base_dnode.schema().schema_path()
579579
match_ancestors = False
580-
580+
print("calling _find_schema_dependencies({},{})".format(match_path, match_ancestors))
581581
lreflist = self._find_schema_dependencies(match_path=search_xpath, match_ancestors=match_ancestors)
582582
if lreflist is None:
583583
raise Exception("no schema backlinks found")
584584
except Exception as e:
585-
self.sysLog(msg='Failed to find node or dependencies for {}'.format(data_xpath), debug=syslog.LOG_ERR, doPrint=True)
585+
self.sysLog(msg='Failed to find node or dependencies for {}:{}'.format(data_xpath, e), debug=syslog.LOG_ERR, doPrint=True)
586586
lreflist = []
587587
# Exception not expected by existing tests if backlinks not found, so don't raise.
588588
# raise SonicYangException("Failed to find node or dependencies for {}\n{}".format(data_xpath, str(e)))

0 commit comments

Comments
 (0)