Skip to content

Commit 2efbf7c

Browse files
author
bajins
committed
update
1 parent 4f54082 commit 2efbf7c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@
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

main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
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

8384
func 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)

0 commit comments

Comments
 (0)