summaryrefslogtreecommitdiff
path: root/vtysh/vtysh_main.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-01-08 21:33:49 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-07-29 17:18:18 +0000
commit1f9128d69fa2741368b72a6e0ab4ef25fd29a636 (patch)
treefbdf035783d2f23c5329e20d3d29d7cc9dc6cfdd /vtysh/vtysh_main.c
parent2816a8799d62d375efbb5f89d9ef6939432bdf46 (diff)
vtysh: only show error codes once
When using `show error` commands, show errors shared between multiple daemons only once. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vtysh/vtysh_main.c')
-rw-r--r--vtysh/vtysh_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c
index 9667460189..d536263db0 100644
--- a/vtysh/vtysh_main.c
+++ b/vtysh/vtysh_main.c
@@ -47,6 +47,8 @@
#include "linklist.h"
#include "memory_vty.h"
#include "libfrr.h"
+#include "ferr.h"
+#include "lib_errors.h"
#include "vtysh/vtysh.h"
#include "vtysh/vtysh_user.h"
@@ -461,6 +463,9 @@ int main(int argc, char **argv, char **env)
vtysh_read_config(vtysh_config);
suid_off();
}
+ /* Error code library system */
+ log_ref_init();
+ lib_error_init();
if (markfile) {
if (!inputfile) {