From 6efea26bc56efd002809e52c396a7eb3a68df7b3 Mon Sep 17 00:00:00 2001 From: Saxon Milton Date: Wed, 25 Apr 2018 14:42:16 +0930 Subject: [PATCH] Added more debug messages --- RevidCLI.go | 2 +- revid/Revid.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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!")