Briefer ALPN error message

This commit is contained in:
George MacKerron
2025-07-30 14:19:46 +01:00
parent 3bd2486778
commit bfb86b2e6e

View File

@@ -139,7 +139,7 @@ pub(crate) async fn handshake<S: AsyncRead + AsyncWrite + Unpin + Send>(
match conn_info.alpn_protocol() {
None => {
if direct.is_some() {
warn!("missing ALPN protocol 'postgresql'");
warn!("missing ALPN");
return Err(HandshakeError::ProtocolViolation);
}
}