Allow more complex debugging like YANG with DETAIL

This commit is contained in:
Philip Prindeville 2024-01-04 11:11:55 -07:00 committed by Olof Hagsand
parent 762c9fcbd8
commit 20b233e96f
4 changed files with 34 additions and 13 deletions

View file

@ -1,4 +1,4 @@
/*
/*
*
***** BEGIN LICENSE BLOCK *****
@ -146,7 +146,7 @@ clixon_debug_fn(clixon_handle h,
cbuf *cb = NULL;
/* Mask debug level with global dbg variable */
if ((dbglevel & clixon_debug_get()) == 0)
if (!clixon_debug_isset(dbglevel))
return 0;
if (h == NULL) /* Accept NULL, use saved clixon handle */
h = _debug_clixon_h;