]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pathd: some traces are added to 'debug pathd ted' command.
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 25 Jul 2022 12:57:10 +0000 (14:57 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 14 Nov 2022 16:42:55 +0000 (17:42 +0100)
Some traces initially displayed will be hidden behind the
vty command: 'debug pathd ted'.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
pathd/pathd.c

index 5ede1de2fffe9c581675545f906933ac0d6692a6..5baaaf5159e733c6023ea58284a35a7c650b83a9 100644 (file)
@@ -1383,8 +1383,9 @@ int32_t srte_ted_do_query_type_c(struct srte_segment_entry *entry,
                zlog_warn(" %s: PATHD-TED: SL: ERROR query C : ted-sid (%d)",
                          __func__, ted_sid);
        } else {
-               zlog_debug("%s: PATHD-TED: SL: Success query C : ted-sid (%d)",
-                          __func__, ted_sid);
+               PATH_TED_DEBUG(
+                       "%s: PATHD-TED: SL: Success query C : ted-sid (%d)",
+                       __func__, ted_sid);
        }
        if (CHECK_SID(entry->segment_list->protocol_origin, ted_sid,
                      entry->sid_value)) {
@@ -1413,8 +1414,9 @@ int32_t srte_ted_do_query_type_e(struct srte_segment_entry *entry,
                zlog_warn(" %s: PATHD-TED: SL: ERROR query E : ted-sid (%d)",
                          __func__, ted_sid);
        } else {
-               zlog_debug("%s: PATHD-TED: SL: Success query E : ted-sid (%d)",
-                          __func__, ted_sid);
+               PATH_TED_DEBUG(
+                       "%s: PATHD-TED: SL: Success query E : ted-sid (%d)",
+                       __func__, ted_sid);
        }
        if (CHECK_SID(entry->segment_list->protocol_origin, ted_sid,
                      entry->sid_value)) {
@@ -1442,8 +1444,8 @@ int32_t srte_ted_do_query_type_f(struct srte_segment_entry *entry,
                zlog_warn("%s:SL:  ERROR query F : ted-sid (%d)", __func__,
                          ted_sid);
        } else {
-               zlog_debug("%s:SL: Success query F : ted-sid (%d)", __func__,
-                          ted_sid);
+               PATH_TED_DEBUG("%s:SL: Success query F : ted-sid (%d)",
+                              __func__, ted_sid);
        }
        if (CHECK_SID(entry->segment_list->protocol_origin, ted_sid,
                      entry->sid_value)) {