summaryrefslogtreecommitdiff
path: root/watchfrr/watchfrr_errors.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-09-20 11:31:14 -0400
committerDavid Lamparter <equinox@opensourcerouting.org>2018-09-25 19:11:25 +0200
commite09443f51b1c4ee29a5bb7155c0f5161af2cdc7f (patch)
tree583cdf8edf3486ca95344a8ae09197a6a7797a1b /watchfrr/watchfrr_errors.c
parentd127c61aebbce56183d17e5631dffac7a11e84bc (diff)
watchfrr: Modify some stderr messages to zlog_warn
The stderr output is not being displayed as part of watchfrr invocation in system startup. Specifically if the user has not properly sent 1 or more daemons to monitor. If the end-user is using tools/frr this stderr is dropped( and systemd appears to drop stderr too? ) Modify the two stderr calls in this situation and use the zlog system. Now I can clearly see an error message that tells me what has gone wrong. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> [DL: fixed typo]
Diffstat (limited to 'watchfrr/watchfrr_errors.c')
-rw-r--r--watchfrr/watchfrr_errors.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/watchfrr/watchfrr_errors.c b/watchfrr/watchfrr_errors.c
index c720b65099..0aa27ef661 100644
--- a/watchfrr/watchfrr_errors.c
+++ b/watchfrr/watchfrr_errors.c
@@ -32,6 +32,12 @@ static struct log_ref ferr_watchfrr_err[] = {
.suggestion = "Ensure that FRR is still running and if not please open an Issue"
},
{
+ .code = EC_WATCHFRR_UNEXPECTED_DAEMONS,
+ .title = "WATCHFRR wrong daemons to watch",
+ .description = "As part of WATCHFRR startup you must specify 1 or more daemons to monitor",
+ .suggestion = "Update your startup scripts to include zebra and any other daemon you would like to monitor",
+ },
+ {
.code = END_FERR,
}
};