summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/vrf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vrf.c b/lib/vrf.c
index b85ce63f9b..bc82ea9d8a 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -231,7 +231,8 @@ vrf_get (vrf_id_t vrf_id, const char *name)
{
vrf_build_key (vrf_id, &p);
rn = route_node_get (vrf_table, &p);
- zlog_debug("Vrf found: %p", rn->info);
+ if (debug_vrf)
+ zlog_debug("Vrf found: %p", rn->info);
if (rn->info)
{