optimize log tool

This commit is contained in:
hoteas
2021-05-25 20:27:24 +08:00
parent 740059075a
commit fc315064e7
11 changed files with 86 additions and 78 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ func (that *Error) GetError() error {
func (that *Error) SetError(err error) {
that.error = err
if that.Logger != nil {
if that.Logger != nil && err != nil {
//that.Logger=log.GetLog("",false)
that.Logger.Warn(err)
}