|
|
@ -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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}()
|
|
|
|
}()
|
|
|
|