Reduce verbosity
This commit is contained in:
parent
0a6b3ea264
commit
5247ffd083
8
main.go
8
main.go
@ -152,20 +152,20 @@ func main() {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
githubactions.Infof("Calling node API...")
|
githubactions.Debugf("Calling node API...")
|
||||||
client := &http.Client{}
|
client := &http.Client{}
|
||||||
res, err := client.Do(req)
|
res, err := client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
githubactions.Fatalf(err.Error())
|
githubactions.Fatalf(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
githubactions.Infof("Reading response...")
|
githubactions.Debugf("Reading response...")
|
||||||
resBody, err := io.ReadAll(res.Body)
|
resBody, err := io.ReadAll(res.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
githubactions.Fatalf(err.Error())
|
githubactions.Fatalf(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
githubactions.Infof("Response: %v", string(resBody))
|
githubactions.Debugf("Response: %v", string(resBody))
|
||||||
d := json.NewDecoder(res.Body)
|
d := json.NewDecoder(res.Body)
|
||||||
for {
|
for {
|
||||||
var ipfsAddResponse []AddResponse
|
var ipfsAddResponse []AddResponse
|
||||||
@ -174,6 +174,6 @@ func main() {
|
|||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
githubactions.Warningf("Failed to unmarshal response: %v", fmt.Errorf("%w", err))
|
githubactions.Warningf("Failed to unmarshal response: %v", fmt.Errorf("%w", err))
|
||||||
}
|
}
|
||||||
githubactions.Infof("Received response: %v", ipfsAddResponse)
|
githubactions.Debugf("Unmarshaled response: %v", ipfsAddResponse)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user