fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
80.5k stars 12.74k forks source link

[Feature Request] 第一行日志输出frp当前版本,还有配置文件是否错误? #4157

Closed Dunkelicht closed 4 weeks ago

Dunkelicht commented 1 month ago

Describe the feature request

frp端口转发非常稳定,但是有时候需要诊断网络问题和配置问题, 可否在日志输出的时候输出一些实用信息,例如frps和frpc的使用的版本。 配置文件是否错误可能不是必须的,毕竟多了一个检查就多一个故障点。

Describe alternatives you've considered

我是在windows下运行的,会用bat启动frp,所以一开始会执行frps -v /frpc -v, 当然 这样不会进入文件日志中

Affected area

xqzr commented 1 month ago

尝试调整 日志级别 https://github.com/fatedier/frp/blob/2626d6ed926745a6dda4301ceee79d00d44f696c/conf/frps_full_example.toml#L88

Dunkelicht commented 1 month ago

尝试调整 日志级别

https://github.com/fatedier/frp/blob/2626d6ed926745a6dda4301ceee79d00d44f696c/conf/frps_full_example.toml#L88

非常感谢 我想 应该是 trace>debug>info>warn>error,而且优先级高的包含低的,我的理解有问题吗?

xqzr commented 1 month ago

尝试调整 日志级别 https://github.com/fatedier/frp/blob/2626d6ed926745a6dda4301ceee79d00d44f696c/conf/frps_full_example.toml#L88

非常感谢 我想 应该是 trace>debug>info>warn>error,而且优先级高的包含低的,我的理解有问题吗?