terry преди 8 месеца
родител
ревизия
05131f7071
променени са 2 файла, в които са добавени 0 реда и са изтрити 4 реда
  1. 0 2
      lc/server.go
  2. 0 2
      lc/speaker.go

+ 0 - 2
lc/server.go

@@ -1,7 +1,6 @@
 package lc
 
 import (
-	"github.com/sirupsen/logrus"
 	"lc-smartX/util"
 	"lc-smartX/util/gopool"
 	"time"
@@ -50,7 +49,6 @@ func (m MainNotifier) Notify() {
 	if m.s.MainState != 1 {
 		m.s.MainState = 1
 		for _, v := range m.s.SubDevices {
-			logrus.Debugf("SubDevices v = %+v", v)
 			gopool.Go(v.Call)
 		}
 	}

+ 0 - 2
lc/speaker.go

@@ -50,7 +50,6 @@ func (ip *IpCast) Speak(txt string) {
 		Queue:  false,
 	}
 	data.Loop.Times = 1
-	logrus.Debugf("IpCast Speak txt : %s", txt)
 	body, err := json.Marshal(data)
 	if err != nil {
 		logrus.Errorf("IpCast Marshal err : %s", err.Error())
@@ -59,7 +58,6 @@ func (ip *IpCast) Speak(txt string) {
 
 	req, _ := http.NewRequest("POST", fmt.Sprintf("http://%s/v1/speech", ip.Ip), bytes.NewReader(body))
 	req.Header.Set("Content-Type", "application/json")
-	logrus.Debugf("IpCast Speak req : %+v", req)
 	rsp, err := http.DefaultClient.Do(req)
 	if err != nil {
 		logrus.Errorf("IpCast Speak Do err : %s", err.Error())