diff --git a/RevidCLI.go b/RevidCLI.go index c3bb5cd1..e59e82d6 100644 --- a/RevidCLI.go +++ b/RevidCLI.go @@ -72,7 +72,7 @@ const ( noOfConfigconfigFlags = 19 revidStopTime = 5 prepTime = 20 - loggerVerbosity = 3 + loggerVerbosity = 4 ) const ( diff --git a/revid/Revid.go b/revid/Revid.go index e71a3a20..9047c590 100644 --- a/revid/Revid.go +++ b/revid/Revid.go @@ -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!")