summaryrefslogtreecommitdiffstats
path: root/src/vlib/main.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-03-09 16:10:54 +0100
committerMatthew Smith <mgsmith@netgate.com>2022-03-10 23:10:58 +0000
commit62d656ace95ea5002c6c5c8e2eddb2901d38ab6f (patch)
tree32c153965786615798343e92d20478e61f1eb2ce /src/vlib/main.c
parent85b285b9000b056213c871dd128733085f0a8f37 (diff)
vlib: init logging eearlier
Type: improvement Change-Id: I2eb5543aa470094d4c5ad420a2fcc9873b7808e1 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/main.c')
-rw-r--r--src/vlib/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vlib/main.c b/src/vlib/main.c
index 6d241bd18bb..874f6a1350b 100644
--- a/src/vlib/main.c
+++ b/src/vlib/main.c
@@ -1887,6 +1887,12 @@ vlib_main (vlib_main_t * volatile vm, unformat_input_t * input)
goto done;
}
+ if ((error = vlib_log_init (vm)))
+ {
+ clib_error_report (error);
+ goto done;
+ }
+
if ((error = vlib_stats_init (vm)))
{
clib_error_report (error);