diff --git a/targets/RT/USER/lte-softmodem.c b/targets/RT/USER/lte-softmodem.c
index 5565dcf5f92b02b9f5942ccf888c2368d630ae56..a10054f12b820de413cb9cf13233fc257b4fe54a 100644
--- a/targets/RT/USER/lte-softmodem.c
+++ b/targets/RT/USER/lte-softmodem.c
@@ -2370,14 +2370,14 @@ int main( int argc, char **argv )
     downlink_frequency[CC_id][3] = downlink_frequency[CC_id][0];
     //printf("Downlink for CC_id %d frequency set to %u\n", CC_id, downlink_frequency[CC_id][0]);
   }
-
+  logInit();
+ 
   get_options (argc, argv); //Command-line options
  
   // initialize mscgen log
   MSC_INIT(MSC_E_UTRAN);
   
   // initialize the log (see log.h for details)
-  logInit();
   set_glog(glog_level, glog_verbosity);
 
   //randominit (0);