[GH-ISSUE #2131] reduce the log level to info/trace [W] [vhost.go:147] get hostname from http/https request error: readHandshake: there is no extension data to get servername #1694

Closed
opened 2026-05-05 13:05:08 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @Milokita on GitHub (Dec 4, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2131

The solution you want

the log now is filled with the warning bellow, but it won't affect the program if the https is served under apache/nginx so change it to info/debug would be better
[W] [vhost.go:147] get hostname from http/https request error: readHandshake: there is no extension data to get servername
Alternatives considered

add auto supress function
How to implement this function

change the log level this warning belong to
Application scenarios of this function

prevent log is filled with this warning

Originally created by @Milokita on GitHub (Dec 4, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/2131 <!-- From Chinese to English by machine translation, welcome to revise and polish. --> **The solution you want** <!--A clear and concise description of the solution you want. --> the log now is filled with the warning bellow, but it won't affect the program if the https is served under apache/nginx so change it to info/debug would be better ` [W] [vhost.go:147] get hostname from http/https request error: readHandshake: there is no extension data to get servername ` **Alternatives considered** <!--A clear and concise description of any alternative solutions or features you have considered. --> add auto supress function **How to implement this function** <!--Implementation steps for the solution you want. --> change the log level this warning belong to **Application scenarios of this function** <!--Make a clear and concise description of the application scenario of the solution you want. --> prevent log is filled with this warning
gitea-mirror 2026-05-05 13:05:08 -06:00
Author
Owner

@fatedier commented on GitHub (Dec 6, 2020):

@Milokita Can you submit a PR to change the log level to debug?

<!-- gh-comment-id:739449456 --> @fatedier commented on GitHub (Dec 6, 2020): @Milokita Can you submit a PR to change the log level to `debug`?
Author
Owner

@Milokita commented on GitHub (Dec 25, 2020):

Pull request submitted

<!-- gh-comment-id:751157777 --> @Milokita commented on GitHub (Dec 25, 2020): Pull request submitted
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1694
No description provided.