Browse Source

Linting comments, remove deadcode.

Bruce Marriner 8 years ago
parent
commit
d1184ab1fd
1 changed files with 9 additions and 11 deletions
  1. 9 11
      logging.go

+ 9 - 11
logging.go

@@ -10,8 +10,6 @@
 package discordgo
 
 import (
-	"bytes"
-	"encoding/json"
 	"fmt"
 	"log"
 	"runtime"
@@ -20,21 +18,19 @@ import (
 
 const (
 
-	// Critical Errors that could lead to data loss or panic
-	// Only errors that would not be returned to a calling function
+	// LogError level is used for critical errors that could lead to data loss
+	// or panic that would not be returned to a calling function.
 	LogError int = iota
 
-	// Very abnormal events.
-	// Errors that are also returend to a calling function.
+	// LogWarning level is used for very abnormal events and errors that are
+	// also returend to a calling function.
 	LogWarning
 
-	// Normal non-error activity
-	// Generally, not overly spammy events
+	// LogInformational level is used for normal non-error activity
 	LogInformational
 
-	// Very detailed non-error activity
-	// All HTTP/Websocket packets.
-	// Very spammy and will impact performance
+	// LogDebug level is for very detailed non-error activity.  This is
+	// very spammy and will impact performance.
 	LogDebug
 )
 
@@ -95,6 +91,7 @@ func (v *VoiceConnection) log(msgL int, format string, a ...interface{}) {
 }
 
 // printJSON is a helper function to display JSON data in a easy to read format.
+/* NOT USED ATM
 func printJSON(body []byte) {
 	var prettyJSON bytes.Buffer
 	error := json.Indent(&prettyJSON, body, "", "\t")
@@ -103,3 +100,4 @@ func printJSON(body []byte) {
 	}
 	log.Println(string(prettyJSON.Bytes()))
 }
+*/