aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ikev2/ikev2.c
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2020-02-18 23:34:23 +0000
committerNeale Ranns <nranns@cisco.com>2020-02-20 08:37:18 +0000
commitd3884202a7a7e9896baf58ce7e7dd697965840ff (patch)
treee6f9cac19094e1020cdab31e8092f85086b418c6 /src/plugins/ikev2/ikev2.c
parenta434955b334dcf4fdf79490263b45c75641c6424 (diff)
ikev2: fix logging init
Type: fix Change-Id: I76bed5ce2df897d0e8e822ee1244018b0e39494d Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins/ikev2/ikev2.c')
-rw-r--r--src/plugins/ikev2/ikev2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/ikev2/ikev2.c b/src/plugins/ikev2/ikev2.c
index 7d03150bd45..3d37dffc983 100644
--- a/src/plugins/ikev2/ikev2.c
+++ b/src/plugins/ikev2/ikev2.c
@@ -832,9 +832,6 @@ ikev2_initial_contact_cleanup (ikev2_sa_t * sa)
vec_free (delete);
sa->initial_contact = 0;
-
- km->log_level = IKEV2_LOG_ERROR;
- km->log_class = vlib_log_register_class ("ikev2", 0);
}
static void
@@ -3531,6 +3528,8 @@ ikev2_init (vlib_main_t * vm)
ikev2_cli_reference ();
+ km->log_level = IKEV2_LOG_ERROR;
+ km->log_class = vlib_log_register_class ("ikev2", 0);
return 0;
}