From 2695ae1b21d07e6a5ad7d901918d4ff61dd95c41 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Tue, 26 Apr 2016 21:22:28 -0500 Subject: [PATCH] clean up comments a little --- logging.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/logging.go b/logging.go index ba70ae8..95ba1bb 100644 --- a/logging.go +++ b/logging.go @@ -25,9 +25,7 @@ const ( LogDebug ) -// TODO: Merge util.go code into here - -// dumps debug information to stdout +// logs messages to stderr func msglog(cfgL, msgL int, format string, a ...interface{}) { if msgL > cfgL { @@ -48,6 +46,7 @@ func msglog(cfgL, msgL int, format string, a ...interface{}) { log.Printf("%s:%d:%s %s\n", file, line, name, msg) } +// helper function that wraps msglog for the Session struct func (s *Session) log(msgL int, format string, a ...interface{}) { if s.Debug { // Deprecated @@ -56,6 +55,7 @@ func (s *Session) log(msgL int, format string, a ...interface{}) { msglog(s.LogLevel, msgL, format, a...) } +// helper function that wraps msglog for the VoiceConnection struct func (v *VoiceConnection) log(msgL int, format string, a ...interface{}) { if v.Debug { // Deprecated