diff options
| author | David Lamparter <equinox@diac24.net> | 2019-06-03 15:52:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-03 15:52:32 +0200 |
| commit | 5a4ac9df0fd2665a5b1dae12ae18eed8d4686c30 (patch) | |
| tree | 4c7483e558bc151db120be3b92f144779f6fda16 /lib/libfrr.c | |
| parent | b2eea7a00eb2fcc01dbcb0335546ac7d4224d11a (diff) | |
| parent | 80d02adbb01fcdbd37ea0773129b3d4fdf6c5217 (diff) | |
No log commands (#3581)
No log commands
Diffstat (limited to 'lib/libfrr.c')
| -rw-r--r-- | lib/libfrr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libfrr.c b/lib/libfrr.c index c60e26085f..c9a1e46320 100644 --- a/lib/libfrr.c +++ b/lib/libfrr.c @@ -94,6 +94,7 @@ static void opt_extend(const struct optspec *os) #define OPTION_LOGLEVEL 1004 #define OPTION_TCLI 1005 #define OPTION_DB_FILE 1006 +#define OPTION_LOGGING 1007 static const struct option lo_always[] = { {"help", no_argument, NULL, 'h'}, @@ -105,6 +106,7 @@ static const struct option lo_always[] = { {"log", required_argument, NULL, OPTION_LOG}, {"log-level", required_argument, NULL, OPTION_LOGLEVEL}, {"tcli", no_argument, NULL, OPTION_TCLI}, + {"command-log-always", no_argument, NULL, OPTION_LOGGING}, {NULL}}; static const struct optspec os_always = { "hvdM:", @@ -496,6 +498,9 @@ static int frr_opt(int opt) case OPTION_LOGLEVEL: di->early_loglevel = optarg; break; + case OPTION_LOGGING: + di->log_always = true; + break; default: return 1; } @@ -648,7 +653,7 @@ struct thread_master *frr_init(void) else cmd_init(1); - vty_init(master); + vty_init(master, di->log_always); memory_init(); log_ref_init(); |
