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

modify log level of message #205

Closed
wants to merge 1 commit into from

Conversation

xushichangdesmond
Copy link

Copy link

@rakeshdatta rakeshdatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a question. Thanks.

@@ -25,7 +25,7 @@ use crate::tls::ssl::SslConnector;
use crate::upstreams::peer::{Peer, ALPN};

use l4::connect as l4_connect;
use log::{debug, error, warn};
use log::{debug, warn};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good that we are removing it, otherwise we would see unnecessary warnings during compilation

@@ -201,7 +201,7 @@ impl TransportConnector {
}
}
Err(_) => {
error!("failed to acquire reusable stream");
debug!("failed to acquire reusable stream");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible that the connection is present, but we are still unable to acquire the stream due to system level issues? Thinking out loud, if having it as an 'warn' instead, helps for those scenarios

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, possible other real error scenarios is exactly why I raised it as a question first on pingora's issue board #201. To be fair though, even in the case where it is some system level error, it really should be detected differently and logged differently.
The way it is in its current state probably doesn't serve anyone since you can't tell exactly what happened anyway based on that ERROR log line. All it does now in my application at least is fill logs up with multiple ERRORs even with no actual problems.

@gideontong gideontong added the enhancement New feature or request label Apr 18, 2024
@xushichangdesmond
Copy link
Author

closing this PR since it looks like there is a code bug in pingora itself causing the actual issue to be addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants