We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff65dc7 commit f1b208fCopy full SHA for f1b208f
userspace/falco/app/actions/process_events.cpp
@@ -585,6 +585,12 @@ falco::app::run_result falco::app::actions::process_events(falco::app::state& s)
585
}
586
587
588
+ // By deleting s.outputs, we make sure that the engine will wait until
589
+ // regular output has been completely sent before printing stats, avoiding
590
+ // intermixed stats with output.
591
+ // Note that this will only work if this is the last reference held by the
592
+ // shared pointer.
593
+ s.outputs.reset();
594
s.engine->print_stats();
595
596
return res;
0 commit comments