send warning to slack when video processing panics
This commit is contained in:
parent
59471f9c26
commit
c28d5a716b
1 changed files with 1 additions and 1 deletions
|
@ -1088,7 +1088,7 @@ Enqueue:
|
|||
func (s *Sync) processVideo(v video) (err error) {
|
||||
defer func() {
|
||||
if p := recover(); p != nil {
|
||||
log.Printf("stack: %s", debug.Stack())
|
||||
logUtils.SendErrorToSlack("Video processing panic! %s", debug.Stack())
|
||||
var ok bool
|
||||
err, ok = p.(error)
|
||||
if !ok {
|
||||
|
|
Loading…
Reference in a new issue