文件夹挂载逻辑变动
This commit is contained in:
@@ -399,7 +399,8 @@ func getFrpcStatusHandler(c *gin.Context) {
|
||||
// ========== 日志 Handler ==========
|
||||
|
||||
func getFrpcLogHandler(c *gin.Context) {
|
||||
lines, err := readTailLog("./frpc.log", 200)
|
||||
// 从 ./data/frpc.log 读取日志
|
||||
lines, err := readTailLog("./data/frpc.log", 200)
|
||||
if err != nil {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"code": 0,
|
||||
|
||||
Reference in New Issue
Block a user