only print hh.conf once, plus bugfix
commit4648ad388d31bf080b8211a39b7e3041f7e83140
authorLucian Wischik <ljw@fb.com>
Wed, 8 Dec 2021 17:12:48 +0000 (8 09:12 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 8 Dec 2021 17:16:29 +0000 (8 09:16 -0800)
treeb8839947441ae482e58d1f67912e67586789d87d
parent871f2320d106eaee303b30ac4feb41c67fa214b8
only print hh.conf once, plus bugfix

Summary:
When we start up hack, the server log contains numerous copies of the config (hh.conf, plus overrides). This diff simplifies it. It no longer prints the baseline hh.conf. It instead prints each override once, and then prints the entire combined config once.

One change is that `Config_file.parse*` is now always silent.

Also, I think there was a bug before where "apply CLI overrides" was only used in some cases (namely, if there were experiments_config); it should really be applied in all cases. This diff fixes it.

Differential Revision: D32930474

fbshipit-source-id: 2c431512366a98d940e82d19de96053588be7486
12 files changed:
hphp/hack/src/decl/remote_old_decl_client.ml
hphp/hack/src/hackfmt.ml
hphp/hack/src/hh_single_type_check.ml
hphp/hack/src/monitor/serverMonitor.ml
hphp/hack/src/server/serverConfig.ml
hphp/hack/src/server/serverGenPrefetchDir.ml
hphp/hack/src/server/serverLocalConfig.ml
hphp/hack/src/utils/config_file/config_file.ml
hphp/hack/src/utils/config_file/config_file.mli
hphp/hack/src/utils/config_file/config_file_common.ml
hphp/hack/src/utils/config_file/config_file_common.mli
hphp/hack/test/unit/informant/informant_test_tools.ml