mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3285] frpc在frpc.ini中指定输出日志时无法输出日志 #2633
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2633
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Daodanfd5 on GitHub (Feb 1, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3285
Bug Description
如题,将frpc的log名称设成mcfrpc.log,启动时会显示logs.BeeLogger.SetLogger: invalid character 'm' in string escape code,但不影响frpc反向代理
frpc Version
0.46.1
frps Version
0.46.1
System Architecture
windows/amd64
Configurations
frpc无日志输出,将程序复制到另一台电脑上也无法使用,两台机器一台启用了utf-8一台没有启用utf-8
以下是frpc.ini内容
删除log_file = D:*****\mcfrpc.log后日志会在控制台完整输出。
Logs
控制台输出:
Steps to reproduce
Affected area
@Daodanfd5 commented on GitHub (Feb 2, 2023):
系统信息:
版本 Windows Server 2022 Datacenter
版本号 21H2
安装日期 2022/8/18
操作系统内部版本 20348.1487
补充:在启用utf-8支持后重启时并没有立即出现该现象,但另一台使用GBK编码的电脑却可以正常运行从GitHub下载的同一版本
@Becods commented on GitHub (Feb 2, 2023):
将
\替换成/\为转义字符@Daodanfd5 commented on GitHub (Feb 2, 2023):
感谢,运行成功了,不过这个路径在frp中的处理方式和其他大部分应用程序不同,是为了保持frpc.ini可以在多平台通用吗?