[report] gate InferPrint StatsLogs format behind Config.log_events

Summary: InferPrint should not generate StatsLogs format at all unless Config.log_events is set to true

Reviewed By: mbouaziz, dulmarod

Differential Revision: D6976352

fbshipit-source-id: d12005a
master
Varun Arora 7 years ago committed by Facebook Github Bot
parent c38052bbaa
commit 14fb188636

@ -988,7 +988,7 @@ let init_calls_format_list () = Option.value_map ~f:(mk_format Csv) ~default:[]
let init_stats_format_list () =
let csv_format = Option.value_map ~f:(mk_format Csv) ~default:[] Config.stats_report in
let logs_format = [(Logs, None)] in
let logs_format = if Config.log_events then [(Logs, None)] else [] in
csv_format @ logs_format

Loading…
Cancel
Save