Finish refining all the logger things.

This commit is contained in:
zicla
2018-11-30 15:32:28 +08:00
parent 4af940647d
commit 6485e3b48e
19 changed files with 162 additions and 146 deletions

View File

@ -1,9 +1,9 @@
package rest
import (
"fmt"
"net/http"
"time"
"fmt"
)
//@Service
@ -20,6 +20,7 @@ type AlienService struct {
//初始化方法
func (this *AlienService) Init() {
this.Bean.Init()
//手动装填本实例的Bean. 这里必须要用中间变量方可。
b := CONTEXT.GetBean(this.matterDao)
@ -67,7 +68,7 @@ func (this *AlienService) PreviewOrDownload(
operator *User,
withContentDisposition bool) {
LogInfo("预览或下载文件 " + uuid + " " + filename)
this.logger.Info("预览或下载文件 " + uuid + " " + filename)
matter := this.matterDao.CheckByUuid(uuid)