Skip to content

Commit

Permalink
Merge pull request #55 from soracom/minor-fixes
Browse files Browse the repository at this point in the history
chore: update doc links and correct dump formatting in debug mode
  • Loading branch information
moznion committed Sep 5, 2023
2 parents e1fd9dc + 1bece66 commit 00f8021
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ $ soratun bootstrap authkey --auth-key-id keyId-xxx --auth-key secret-xxx --cove

For other bootstrapping method detail, please consult SORACOM documentation at:

- English: https://developers.soracom.io/en/
- Japanese: https://users.soracom.io/ja-jp/docs/arc/
- English: https://developers.soracom.io/en/docs/arc/soratun/
- Japanese: https://users.soracom.io/ja-jp/docs/arc/soratun-overview/

### Running as a daemon with `systemd`

Expand Down
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (c *DefaultSoracomClient) callAPI(params *apiParams) (*http.Response, error
if c.Verbose() {
fmt.Fprintln(os.Stderr, "--- Request dump ---------------------------------")
r, _ := httputil.DumpRequest(req, true)
fmt.Fprintln(os.Stderr, r)
fmt.Fprintln(os.Stderr, string(r))
fmt.Fprintln(os.Stderr, "--- End of request dump --------------------------")
}
res, err := c.doRequest(req)
Expand Down Expand Up @@ -239,7 +239,7 @@ func (c *DefaultSoracomClient) doRequest(req *http.Request) (*http.Response, err
if c.Verbose() && res != nil {
fmt.Fprintln(os.Stderr, "--- Response dump --------------------------------")
r, _ := httputil.DumpResponse(res, true)
fmt.Fprintln(os.Stderr, r)
fmt.Fprintln(os.Stderr, string(r))
fmt.Fprintln(os.Stderr, "--- End of response dump -------------------------")
}

Expand Down
4 changes: 2 additions & 2 deletions krypton_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (c *DefaultSoracomKryptonClient) callAPI(params *apiParams) (*http.Response
if c.Verbose() {
fmt.Fprintln(os.Stderr, "--- Request dump ---------------------------------")
r, _ := httputil.DumpRequest(req, true)
fmt.Fprintln(os.Stderr, r)
fmt.Fprintln(os.Stderr, string(r))
fmt.Fprintln(os.Stderr, "--- End of request dump --------------------------")
}
res, err := c.doRequest(req)
Expand Down Expand Up @@ -130,7 +130,7 @@ func (c *DefaultSoracomKryptonClient) doRequest(req *http.Request) (*http.Respon
if c.Verbose() && res != nil {
fmt.Fprintln(os.Stderr, "--- Response dump --------------------------------")
r, _ := httputil.DumpResponse(res, true)
fmt.Fprintln(os.Stderr, r)
fmt.Fprintln(os.Stderr, string(r))
fmt.Fprintln(os.Stderr, "--- End of response dump -------------------------")
}

Expand Down

0 comments on commit 00f8021

Please sign in to comment.