Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util/log: allow bool fields to be emitted as false in json format
Previously with the json logging format, it was not possible to emit boolean fields that were false. Even if the boolean field is marked as 'includeempty', it will be emitted as `field: true` in the event. While always not including false boolean fields is more space efficient, with certain fields it's helpful to have the field emitted in all instances and explicitly state its 'false' value. This patch makes it possible for `fieldName: false` to be emitted in the json logging format when the field is marked as `includeempty`. Epic: none Part of: cockroachdb#108284 Release note: None
- Loading branch information