suppression de logs
This commit is contained in:
parent
21aec5f516
commit
fa9ec2cfbc
@ -61,8 +61,6 @@ func (e *eventStream) disconnect() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (e *eventStream) listen(ctx context.Context) error {
|
func (e *eventStream) listen(ctx context.Context) error {
|
||||||
log.Info("eventStream.listen > start")
|
|
||||||
|
|
||||||
err := e.SSEClient.SubscribeChanRaw(e.Events)
|
err := e.SSEClient.SubscribeChanRaw(e.Events)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to subscribe to seeclient")
|
return fmt.Errorf("failed to subscribe to seeclient")
|
||||||
@ -72,7 +70,6 @@ func (e *eventStream) listen(ctx context.Context) error {
|
|||||||
defer func() {
|
defer func() {
|
||||||
e.clearResourceSubscriptions()
|
e.clearResourceSubscriptions()
|
||||||
e.clearTransactionSubscriptions()
|
e.clearTransactionSubscriptions()
|
||||||
log.Info("eventStream.listen > stop")
|
|
||||||
}()
|
}()
|
||||||
|
|
||||||
for {
|
for {
|
||||||
@ -90,8 +87,6 @@ func (e *eventStream) listen(ctx context.Context) error {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("DATA : %s\n", event.Data)
|
|
||||||
|
|
||||||
var notifyResponse EventStreamResponse
|
var notifyResponse EventStreamResponse
|
||||||
err := json.NewDecoder(bytes.NewBuffer(event.Data)).Decode(¬ifyResponse)
|
err := json.NewDecoder(bytes.NewBuffer(event.Data)).Decode(¬ifyResponse)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user