Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http: Prevent logging confusing error message #1059

Merged

Conversation

adriansr
Copy link
Contributor

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.

@adriansr adriansr force-pushed the fail_if_not_ssl_final_req_log branch from 617a4e5 to 5e8e5e6 Compare April 14, 2023 14:10
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]>
@adriansr adriansr force-pushed the fail_if_not_ssl_final_req_log branch from 5e8e5e6 to 68ccd8c Compare June 2, 2023 10:05
@adriansr adriansr force-pushed the fail_if_not_ssl_final_req_log branch from 68ccd8c to 6637eca Compare June 2, 2023 10:06
@adriansr adriansr requested a review from electron0zero June 2, 2023 10:19
@electron0zero electron0zero merged commit 2bf957e into prometheus:master Jun 5, 2023
SuperQ added a commit that referenced this pull request Apr 9, 2024
* [FEATURE] Allow to get Probe logs by target #1063
* [FEATURE] Log errors from probe #1091
* [BUGFIX] Prevent logging confusing error message #1059
* [BUGFIX] Explicit registration of internal exporter metrics 1060

Signed-off-by: SuperQ <[email protected]>
@SuperQ SuperQ mentioned this pull request Apr 9, 2024
SuperQ added a commit that referenced this pull request Apr 9, 2024
* [FEATURE] Allow to get Probe logs by target #1063
* [FEATURE] Log errors from probe #1091
* [BUGFIX] Prevent logging confusing error message #1059
* [BUGFIX] Explicit registration of internal exporter metrics 1060

Signed-off-by: SuperQ <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants