mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2319] 日志是否可以过滤写入? #1839
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#1839
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 @supply9243 on GitHub (Mar 20, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2319
我需要保存连入IP,但发现需要 debug 才能显示,但这个级别日志太多了,心跳包都算。
比如日志级别 info , 过滤 [proxy.go:273] 整行写入。
@fatedier commented on GitHub (Mar 22, 2021):
./frpc | grep -v 'proxy\.go:273'@supply9243 commented on GitHub (Mar 22, 2021):
@fatedier
大佬,你的docker镜像我该怎么加呀😥。
docker run -d --name frp -v /mnt/sda3/user/frp/frps.ini:/frps.ini --network host --restart=always fatedier/frp
[common]
log_file = /frps.log
log_level = info
log_max_days = 3
把proxy.go:273写入frps.log,或者debug不写入心跳包也行。