-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
observe: warn on unknown field while JSON decoding
Before this patch, when parsing JSON flows and encountering an unknown field, the CLI would log a warning and skip the flow. Unknown fields is not uncommon however, e.g. when using the Hubble CLI against a more recent Hubble server version. This patch * emit the flow if successfully parsed while ignoring unknown fields, * improve the warning message by hinting at upgrading the Hubble CLI, * make it so the warning message is logged only once. Signed-off-by: Alexandre Perrin <[email protected]>
- Loading branch information
Showing
2 changed files
with
73 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters