Skip to content

Commit 4177d03

Browse files
committed
gnb: close event tracer thread before shutting down loggers
1 parent 078a675 commit 4177d03

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

apps/gnb/gnb.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@ int main(int argc, char** argv)
301301
e2ap_logger.set_hex_dump_max_size(gnb_cfg.log_cfg.hex_max_size);
302302

303303
if (not gnb_cfg.log_cfg.tracing_filename.empty()) {
304+
gnb_logger.info("Opening event tracer...");
304305
open_trace_file(gnb_cfg.log_cfg.tracing_filename);
306+
gnb_logger.info("Event tracer opened successfully");
305307
}
306308

307309
// Log build info
@@ -565,6 +567,12 @@ int main(int argc, char** argv)
565567

566568
srslog::flush();
567569

570+
if (not gnb_cfg.log_cfg.tracing_filename.empty()) {
571+
gnb_logger.info("Closing event tracer...");
572+
close_trace_file();
573+
gnb_logger.info("Event tracer closed successfully");
574+
}
575+
568576
return 0;
569577
}
570578

0 commit comments

Comments
 (0)