diff --git a/openair2/LAYER2/nr_rlc/tests/test.c b/openair2/LAYER2/nr_rlc/tests/test.c
index bfde8b9fadd37924e0811b7c4477179359c01c45..2ba5c35ffff3ed14b45047a1af444c4b38ecdb35 100644
--- a/openair2/LAYER2/nr_rlc/tests/test.c
+++ b/openair2/LAYER2/nr_rlc/tests/test.c
@@ -10,6 +10,9 @@
 #include <sys/wait.h>
 #include <unistd.h>
 
+#include "common/utils/LOG/log.h"
+
+int oai_exit;
 /*
  * GNB_AM <rx_maxsize> <tx_maxsize> <t_poll_retransmit> <t_reassembly>
  *       <t_status_prohibit> <poll_pdu> <poll_byte> <max_retx_threshold>
@@ -222,6 +225,7 @@ int test_main(void)
   int ue_recv_fails = 0;
   int gnb_pdu_size = 1000;
   int ue_pdu_size = 1000;
+  logInit();
 
   printf("TEST: start\n");