File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 44
55** 此分支使用了` chromedp ` **
66
7- ** 必须安装` Chrome ` **
7+ ~~ ** 必须安装` Chrome ` ** ~~
88
99> [ CentOS安装Chrome] ( https://woytu.github.io/System/CentOS%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6.html#chrome )
1010
1111
1212## 功能
1313
1414- 生成激活key
15-
1615- 获取` xshell ` 、` xftp ` 、` xmanager ` 下载链接
17-
1816- 格式化NGNIX配置
1917
2018
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package main
33import (
44 "flag"
55 "github.com/gin-gonic/gin"
6+ "log"
67 "net/http"
78 "strings"
89 "time"
@@ -81,6 +82,9 @@ func Port() (port string) {
8182}
8283
8384func init () {
85+ // 设置日志初始化参数
86+ // log.Lshortfile 简要文件路径,log.Llongfile 完整文件路径
87+ log .SetFlags (log .Lshortfile | log .LstdFlags )
8488 // 设置项目为发布环境
8589 //gin.SetMode(gin.ReleaseMode)
8690 go utils .SchedulerFixedTicker (reptile .NetsarangDownloadAll , time .Hour * 24 )
You can’t perform that action at this time.
0 commit comments