Reduce verbosity

This commit is contained in:
CrispyBaguette 2024-01-08 07:42:36 +01:00
parent f0094b1a7a
commit 91812ef33c

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)
}
}