File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,12 @@ func main() {
37
37
if healthEndpoint := os .Getenv ("FIRETAIL_API_URL_HEALTH" ); healthEndpoint != "" {
38
38
resp , err := http .Get (healthEndpoint )
39
39
if err != nil {
40
- log .Println ("Error making request to health endpoint:" , err )
40
+ log .Println ("Error making request to health endpoint:" , err . Error () )
41
41
} else {
42
42
defer resp .Body .Close ()
43
43
healthResponse , err := ioutil .ReadAll (resp .Body )
44
44
if err != nil {
45
- log .Println ("Error reading health endpoint response:" , err )
45
+ log .Println ("Error reading health endpoint response:" , err . Error () )
46
46
} else {
47
47
log .Println ("Health endpoint response:" , strconv .Itoa (resp .StatusCode ), string (healthResponse ))
48
48
}
Original file line number Diff line number Diff line change @@ -146,18 +146,18 @@ func (p *ProxyServer) recordAssembler() {
146
146
147
147
eventBody , err := io .ReadAll (event .Body )
148
148
if err != nil {
149
- log .Println ("Error reading event body:" , err )
149
+ log .Println ("Error reading event body:" , err . Error () )
150
150
continue
151
151
}
152
152
responseBody , err := io .ReadAll (lambdaResponse .Body )
153
153
if err != nil {
154
- log .Println ("Error reading response body:" , err )
154
+ log .Println ("Error reading response body:" , err . Error () )
155
155
continue
156
156
}
157
157
158
158
var recordResponse firetail.RecordResponse
159
159
if err := json .Unmarshal (responseBody , & recordResponse ); err != nil {
160
- log .Println ("Error unmarshalling response body:" , err )
160
+ log .Println ("Error unmarshalling response body:" , err . Error () )
161
161
continue
162
162
}
163
163
You can’t perform that action at this time.
0 commit comments