Added more debug messages

This commit is contained in:
Saxon Milton 2018-04-25 14:42:16 +09:30
parent 46cc47c661
commit 6efea26bc5
2 changed files with 6 additions and 1 deletions

View File

@ -72,7 +72,7 @@ const (
noOfConfigconfigFlags = 19
revidStopTime = 5
prepTime = 20
loggerVerbosity = 3
loggerVerbosity = 4
)
const (

View File

@ -314,6 +314,7 @@ func (r *revid) packClips() {
r.flushData()
clip, err = r.ringBuffer.Get()
}
r.Log(Debug, "Finally got mem from ringbuffer!")
}
for {
frame := r.getFrame()
@ -373,7 +374,9 @@ func (r *revid) outputClips() {
if clip, err := r.ringBuffer.Read(); err == nil {
bytes += len(clip)
errorCount := 0
r.Log(Debug,"About to send!")
err2 := r.sendClip(clip)
r.Log(Debug,"Finished send!")
for ; err2 != nil; errorCount++ {
r.Log(Warning, "Send failed trying again!")
// If the clip size is not bigger than the threshold then we classify
@ -411,6 +414,8 @@ func (r *revid) outputClips() {
prevTime = now
bytes = 0
}
} else {
r.Log(Error, err.Error())
}
}
r.Log(Info, "Not outputting clips anymore!")