From 2efbf7cdc2bb735778f5065425b288a4161385d3 Mon Sep 17 00:00:00 2001 From: bajins Date: Wed, 26 Aug 2020 14:42:59 +0800 Subject: [PATCH] update --- README.md | 4 +--- main.go | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2352d3f..6b65b1b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ **此分支使用了`chromedp`** -**必须安装`Chrome`** +~~**必须安装`Chrome`**~~ > [CentOS安装Chrome](https://woytu.github.io/System/CentOS%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6.html#chrome) @@ -12,9 +12,7 @@ ## 功能 - 生成激活key - - 获取`xshell`、`xftp`、`xmanager`下载链接 - - 格式化NGNIX配置 diff --git a/main.go b/main.go index 08728b0..d276b4d 100644 --- a/main.go +++ b/main.go @@ -3,6 +3,7 @@ package main import ( "flag" "github.com/gin-gonic/gin" + "log" "net/http" "strings" "time" @@ -81,6 +82,9 @@ func Port() (port string) { } func init() { + // 设置日志初始化参数 + // log.Lshortfile 简要文件路径,log.Llongfile 完整文件路径 + log.SetFlags(log.Lshortfile | log.LstdFlags) // 设置项目为发布环境 //gin.SetMode(gin.ReleaseMode) go utils.SchedulerFixedTicker(reptile.NetsarangDownloadAll, time.Hour*24)