From 70c6c583e4affc3ca38d0d986edaa1ce170e4e6a Mon Sep 17 00:00:00 2001 From: NamedKitten Date: Mon, 23 Oct 2017 19:20:07 +0100 Subject: [PATCH] Use v.log rather than log for consistency. (#464) Change made to keep the use of logging consistent. --- voice.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/voice.go b/voice.go index 8f033aa..d68d0e2 100644 --- a/voice.go +++ b/voice.go @@ -13,7 +13,6 @@ import ( "encoding/binary" "encoding/json" "fmt" - "log" "net" "strings" "sync" @@ -104,7 +103,7 @@ func (v *VoiceConnection) Speaking(b bool) (err error) { defer v.Unlock() if err != nil { v.speaking = false - log.Println("Speaking() write json error:", err) + v.log(LogError, "Speaking() write json error:", err) return } @@ -181,7 +180,7 @@ func (v *VoiceConnection) Close() { v.log(LogInformational, "closing udp") err := v.udpConn.Close() if err != nil { - log.Println("error closing udp connection: ", err) + v.log(LogError, "error closing udp connection: ", err) } v.udpConn = nil }