deepgram / deepgram-go-sdk

Go SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
34 stars 29 forks source link

EOF error logging with lower verbosity level #165

Closed SandraRodgers closed 9 months ago

SandraRodgers commented 9 months ago

Proposed changes

This change handles an EOF condition more gracefully in the live.Stream() function by logging it with a lower verbosity level (V(4)) rather than treating it as a regular error (V(1)).

Instead of: klog.V(1).Infof("r.Read failed. Err: %v\n", err)

It logs: klog.V(4).Infof("r.Read encountered EOF. Err: %v\n", err)