mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 07:15:19 +00:00
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>
This commit is contained in:
parent
367988eeb3
commit
46d5d8ec82
@ -59,6 +59,7 @@ const char *zlog_proto_names[] =
|
||||
"ISIS",
|
||||
"PIM",
|
||||
"RFP",
|
||||
"WATCHQUAGGA",
|
||||
NULL,
|
||||
};
|
||||
|
||||
|
@ -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
|
||||
|
@ -1335,7 +1335,7 @@ main(int argc, char **argv)
|
||||
return usage(progname,1);
|
||||
}
|
||||
|
||||
zlog_default = openzlog(progname, ZLOG_NONE, 0,
|
||||
zlog_default = openzlog(progname, ZLOG_WATCHQUAGGA, 0,
|
||||
LOG_CONS|LOG_NDELAY|LOG_PID, LOG_DAEMON);
|
||||
zlog_set_level(NULL, ZLOG_DEST_MONITOR, ZLOG_DISABLED);
|
||||
if (daemon_mode)
|
||||
|
Loading…
Reference in New Issue
Block a user