From: Damjan Marion Date: Fri, 4 Aug 2023 10:47:44 +0000 (+0000) Subject: vpp: detect early nosyslog and interactive flags X-Git-Tag: v24.02-rc0~97 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=faeadca89eafef21bb40bdd7e12100d0712e0b7d;p=vpp.git vpp: detect early nosyslog and interactive flags So error logs are displayed on console earlier.... Type: improvement Change-Id: If31b76c9d06254b0fec5b5b3f4e92a881b4cf786 Signed-off-by: Damjan Marion --- diff --git a/src/vpp/vnet/main.c b/src/vpp/vnet/main.c index 9a4bed6a6ea..be34228f01d 100644 --- a/src/vpp/vnet/main.c +++ b/src/vpp/vnet/main.c @@ -269,6 +269,10 @@ main (int argc, char *argv[]) main_core = x; } } + else if (!strncmp (argv[i], "interactive", 11)) + unix_main.flags |= UNIX_FLAG_INTERACTIVE; + else if (!strncmp (argv[i], "nosyslog", 8)) + unix_main.flags |= UNIX_FLAG_NOSYSLOG; } defaulted: