summaryrefslogtreecommitdiffstats
path: root/src/vlib/unix
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib/unix')
-rw-r--r--src/vlib/unix/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vlib/unix/main.c b/src/vlib/unix/main.c
index 2f1b6ecdae0..e86d421056c 100644
--- a/src/vlib/unix/main.c
+++ b/src/vlib/unix/main.c
@@ -706,6 +706,11 @@ vlib_unix_main (int argc, char *argv[])
clib_time_init (&vm->clib_time);
+ /* Turn on the event logger at the first possible moment */
+ vm->configured_elog_ring_size = 128 << 10;
+ elog_init (&vm->elog_main, vm->configured_elog_ring_size);
+ elog_enable_disable (&vm->elog_main, 1);
+
unformat_init_command_line (&input, (char **) vm->argv);
if ((e = vlib_plugin_config (vm, &input)))
{