Fix bm_logging
Fix bm_logging

Only check if logging worked in worker processes: in the main
process, the benchmark is not run (except if calibration is needed).

python/performance,python/performance,python/performance