From cbe37d68ce2b91d9e7e7124c404cda29ab8c7c4c Mon Sep 17 00:00:00 2001
From: Gabe Kangas <gabek@real-ity.com>
Date: Tue, 16 Jun 2020 19:08:34 -0700
Subject: [PATCH] Silence some logging

---
 client.go | 3 +--
 ffmpeg.go | 2 +-
 stats.go  | 7 +++----
 3 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/client.go b/client.go
index 382a1b37e..89f20c881 100644
--- a/client.go
+++ b/client.go
@@ -3,7 +3,6 @@ package main
 import (
 	"fmt"
 	"io"
-	"log"
 
 	"golang.org/x/net/websocket"
 )
@@ -73,7 +72,7 @@ func (c *Client) listenWrite() {
 		// send message to the client
 		case msg := <-c.ch:
 			msg.MessageType = "CHAT"
-			log.Println("Send:", msg)
+			// log.Println("Send:", msg)
 			websocket.JSON.Send(c.ws, msg)
 
 		// receive done request
diff --git a/ffmpeg.go b/ffmpeg.go
index e9bb080c8..d32656f46 100644
--- a/ffmpeg.go
+++ b/ffmpeg.go
@@ -159,7 +159,7 @@ func startFfmpeg(configuration Config) {
 
 	ffmpegCmd := "cat " + pipePath + " | " + configuration.FFMpegPath + " " + ffmpegFlagsString
 
-	fmt.Println(ffmpegCmd)
+	// fmt.Println(ffmpegCmd)
 
 	_, err := exec.Command("sh", "-c", ffmpegCmd).Output()
 	fmt.Println(err)
diff --git a/stats.go b/stats.go
index f3600bcb9..7032ca5a1 100644
--- a/stats.go
+++ b/stats.go
@@ -10,7 +10,6 @@ package main
 
 import (
 	"encoding/json"
-	"fmt"
 	"io/ioutil"
 	"log"
 	"math"
@@ -89,9 +88,9 @@ func (s *Stats) GetOverallMaxViewerCount() int {
 }
 
 func (s *Stats) SetClientActive(clientID string) {
-	if _, ok := s.clients[clientID]; !ok {
-		fmt.Println("Marking client active:", clientID, s.GetViewerCount()+1, "clients connected.")
-	}
+	// if _, ok := s.clients[clientID]; !ok {
+	// 	fmt.Println("Marking client active:", clientID, s.GetViewerCount()+1, "clients connected.")
+	// }
 
 	s.clients[clientID] = time.Now()
 	s.SessionMaxViewerCount = int(math.Max(float64(s.GetViewerCount()), float64(s.SessionMaxViewerCount)))