suppression de logs

This commit is contained in:
Laurent Le Houerou 2020-06-13 15:16:26 +04:00
parent 21aec5f516
commit fa9ec2cfbc

View File

@ -61,8 +61,6 @@ func (e *eventStream) disconnect() {
}
func (e *eventStream) listen(ctx context.Context) error {
log.Info("eventStream.listen > start")
err := e.SSEClient.SubscribeChanRaw(e.Events)
if err != nil {
return fmt.Errorf("failed to subscribe to seeclient")
@ -72,7 +70,6 @@ func (e *eventStream) listen(ctx context.Context) error {
defer func() {
e.clearResourceSubscriptions()
e.clearTransactionSubscriptions()
log.Info("eventStream.listen > stop")
}()
for {
@ -90,8 +87,6 @@ func (e *eventStream) listen(ctx context.Context) error {
continue
}
fmt.Printf("DATA : %s\n", event.Data)
var notifyResponse EventStreamResponse
err := json.NewDecoder(bytes.NewBuffer(event.Data)).Decode(&notifyResponse)
if err != nil {