optimize log tool
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user