Gate HEAD SHA1 logging with config var

False by default.

Change-Id: Ib677f996030b54bc98b42bff2a800303e14dbc6a
Merge "Gate HEAD SHA1 logging with config var"