Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Commit

Permalink
skip logging for now
Browse files Browse the repository at this point in the history
  • Loading branch information
adamko147 committed Apr 8, 2021
1 parent dec38d1 commit 871eaf4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions appinsights/transmit.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"encoding/json"
"errors"
"fmt"
"log"
"net/http"
"time"
)
Expand Down Expand Up @@ -34,10 +33,13 @@ func transmit(ctx context.Context, client *http.Client, endpoint string, envelop
client = http.DefaultClient
}
result := &transmitResult{}
defer func() {
b, _ := json.Marshal(result)
log.Println("appinsights", string(b))
}()

// skip logging for now, handle using Logger interface later
// defer func() {
// b, _ := json.Marshal(result)
// log.Println("appinsights", string(b))
// }()

buf, err := json.Marshal(envelopes)
if err != nil {
return result, fmt.Errorf("%w: failed to marshall envelopes: %v", errTransmitFailed, err)
Expand Down

0 comments on commit 871eaf4

Please sign in to comment.