mirror of https://bitbucket.org/ausocean/av.git
Added more debug messages
This commit is contained in:
parent
46cc47c661
commit
6efea26bc5
|
@ -72,7 +72,7 @@ const (
|
||||||
noOfConfigconfigFlags = 19
|
noOfConfigconfigFlags = 19
|
||||||
revidStopTime = 5
|
revidStopTime = 5
|
||||||
prepTime = 20
|
prepTime = 20
|
||||||
loggerVerbosity = 3
|
loggerVerbosity = 4
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -314,6 +314,7 @@ func (r *revid) packClips() {
|
||||||
r.flushData()
|
r.flushData()
|
||||||
clip, err = r.ringBuffer.Get()
|
clip, err = r.ringBuffer.Get()
|
||||||
}
|
}
|
||||||
|
r.Log(Debug, "Finally got mem from ringbuffer!")
|
||||||
}
|
}
|
||||||
for {
|
for {
|
||||||
frame := r.getFrame()
|
frame := r.getFrame()
|
||||||
|
@ -373,7 +374,9 @@ func (r *revid) outputClips() {
|
||||||
if clip, err := r.ringBuffer.Read(); err == nil {
|
if clip, err := r.ringBuffer.Read(); err == nil {
|
||||||
bytes += len(clip)
|
bytes += len(clip)
|
||||||
errorCount := 0
|
errorCount := 0
|
||||||
|
r.Log(Debug,"About to send!")
|
||||||
err2 := r.sendClip(clip)
|
err2 := r.sendClip(clip)
|
||||||
|
r.Log(Debug,"Finished send!")
|
||||||
for ; err2 != nil; errorCount++ {
|
for ; err2 != nil; errorCount++ {
|
||||||
r.Log(Warning, "Send failed trying again!")
|
r.Log(Warning, "Send failed trying again!")
|
||||||
// If the clip size is not bigger than the threshold then we classify
|
// If the clip size is not bigger than the threshold then we classify
|
||||||
|
@ -411,6 +414,8 @@ func (r *revid) outputClips() {
|
||||||
prevTime = now
|
prevTime = now
|
||||||
bytes = 0
|
bytes = 0
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
r.Log(Error, err.Error())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
r.Log(Info, "Not outputting clips anymore!")
|
r.Log(Info, "Not outputting clips anymore!")
|
||||||
|
|
Loading…
Reference in New Issue