log build info in eNB/EPC logs

This commit is contained in:
Andre Puschmann 2018-10-05 14:58:09 +02:00
parent 273087ce00
commit 15d439761a
2 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,7 @@ bool enb::init(all_args_t *args_)
} else {
logger_file.init(args->log.filename, args->log.file_max_size);
logger_file.log("\n\n");
logger_file.log(get_build_string().c_str());
logger = &logger_file;
}

View File

@ -330,6 +330,8 @@ main (int argc,char * argv[] )
logger = &logger_stdout;
} else {
logger_file.init(args.log_args.filename);
logger_file.log("\n\n");
logger_file.log(get_build_string().c_str());
logger_file.log("\n--- Software Radio Systems EPC log ---\n\n");
logger = &logger_file;
}