Remove github.com/romana/rlog dependency completely (#374)

* Remove `github.com/romana/rlog` dependency completely

* Comment out all the unnecessary logging in the protocol extensions

* Remove commented out all the unnecessary logging lines

* Remove two more lines related to logging
This commit is contained in:
M. Mert Yıldıran
2021-10-19 16:13:03 +03:00
committed by GitHub
parent 0473181f0a
commit 29ba963c48
21 changed files with 22 additions and 129 deletions

View File

@@ -13,7 +13,6 @@ import (
"time"
"github.com/google/martian/har"
"github.com/romana/rlog"
)
type Protocol struct {
@@ -251,7 +250,6 @@ func (h HTTPPayload) MarshalJSON() ([]byte, error) {
case TypeHttpRequest:
harRequest, err := har.NewRequest(h.Data.(*http.Request), true)
if err != nil {
rlog.Debugf("convert-request-to-har", "Failed converting request to HAR %s (%v,%+v)", err, err, err)
return nil, errors.New("Failed converting request to HAR")
}
return json.Marshal(&HTTPWrapper{
@@ -263,7 +261,6 @@ func (h HTTPPayload) MarshalJSON() ([]byte, error) {
case TypeHttpResponse:
harResponse, err := har.NewResponse(h.Data.(*http.Response), true)
if err != nil {
rlog.Debugf("convert-response-to-har", "Failed converting response to HAR %s (%v,%+v)", err, err, err)
return nil, errors.New("Failed converting response to HAR")
}
return json.Marshal(&HTTPWrapper{