fix: 没有收益拆单报错1

master
howell 3 years ago
parent 4df476d4d4
commit 29436ce5e1

@ -7,7 +7,6 @@ import (
"runtime" "runtime"
"time" "time"
"git.oa00.com/go/logger"
"github.com/streadway/amqp" "github.com/streadway/amqp"
) )
@ -61,7 +60,7 @@ func (o rabbitMq) ListenRetry(queue string, count int, handler func([]byte) erro
switch err.(type) { switch err.(type) {
case runtime.Error, string: case runtime.Error, string:
str := fmt.Sprintf("recovered (runtime.Error) panic:%s", err) str := fmt.Sprintf("recovered (runtime.Error) panic:%s", err)
logger.Logger.Error(str) fmt.Println(str)
} }
} }
}() }()

Loading…
Cancel
Save