-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http: Prevent logging confusing error message (#1059)
* http: Prevent logging confusing error message When FailIfNotSSL is set, the error message: > Final request was not over SSL is logged even if a previous error has prevented the request to complete, for example when it fails due to a timeout or connection error. This updates the logic around the log message so it's printed when an otherwise successful request is not performed over SSL and that causes the probe to fail. Signed-off-by: Adrian Serrano <[email protected]> * Add a test to validate log message Signed-off-by: Adrian Serrano <[email protected]> --------- Signed-off-by: Adrian Serrano <[email protected]>
- Loading branch information
Adrian Serrano
authored
Jun 5, 2023
1 parent
ae92222
commit 2bf957e
Showing
2 changed files
with
91 additions
and
1 deletion.
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