summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-11-08 23:56:34 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2016-11-09 14:00:48 +0100
commit46d5d8ec829a3b2daba6fe86463ece550851fc38 (patch)
tree0fbb43f24a89b68c6106b60cf98f41b1c5d5f6ed /lib
parentvtysh: set config file permissions (diff)
downloadfrr-46d5d8ec829a3b2daba6fe86463ece550851fc38.tar.xz
frr-46d5d8ec829a3b2daba6fe86463ece550851fc38.zip
watchquagga: add ZLOG_WATCHQUAGGA
watchquagga logs as "NONE", which will also become visible in vtysh for error messages. Add "WATCHQUAGGA" log target. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/log.c3
-rw-r--r--lib/log.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/log.c b/lib/log.c
index cd1f0bb77..f9877300b 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -58,7 +58,8 @@ const char *zlog_proto_names[] =
"LDP",
"ISIS",
"PIM",
- "RFP",
+ "RFP",
+ "WATCHQUAGGA",
NULL,
};
diff --git a/lib/log.h b/lib/log.h
index d71b85df1..feb1e1852 100644
--- a/lib/log.h
+++ b/lib/log.h
@@ -59,6 +59,7 @@ typedef enum
ZLOG_ISIS,
ZLOG_PIM,
ZLOG_RFP,
+ ZLOG_WATCHQUAGGA,
} zlog_proto_t;
/* If maxlvl is set to ZLOG_DISABLED, then no messages will be sent