Reduce verbosity

This commit is contained in:
Alexandre Bruyant 2024-01-08 08:01:04 +01:00
parent 0a6b3ea264
commit 5247ffd083

View File

@ -152,20 +152,20 @@ func main() {
}
}()
githubactions.Infof("Calling node API...")
githubactions.Debugf("Calling node API...")
client := &http.Client{}
res, err := client.Do(req)
if err != nil {
githubactions.Fatalf(err.Error())
}
githubactions.Infof("Reading response...")
githubactions.Debugf("Reading response...")
resBody, err := io.ReadAll(res.Body)
if err != nil {
githubactions.Fatalf(err.Error())
}
githubactions.Infof("Response: %v", string(resBody))
githubactions.Debugf("Response: %v", string(resBody))
d := json.NewDecoder(res.Body)
for {
var ipfsAddResponse []AddResponse
@ -174,6 +174,6 @@ func main() {
} else if err != nil {
githubactions.Warningf("Failed to unmarshal response: %v", fmt.Errorf("%w", err))
}
githubactions.Infof("Received response: %v", ipfsAddResponse)
githubactions.Debugf("Unmarshaled response: %v", ipfsAddResponse)
}
}