elasticsearch7.10日志和trace

master
nikkiing 2 years ago
parent 12410de8d6
commit 2644ccde76
  1. 2
      glog/es7/es.go

@ -33,7 +33,7 @@ func (l *Logger) LogRoundTrip(request *http.Request, response *http.Response, er
} else {
_, _ = buf.ReadFrom(request.Body)
}
glog.Glog.WithContext(ctx).Info("url:", method, index, "request:", buf.String())
glog.Glog.WithContext(ctx).Info("url:", method, index, " request:", buf.String())
}
if l.ResponseBodyEnabled() && response != nil && response.Body != nil && response.Body != http.NoBody {

Loading…
Cancel
Save