Commit 0378810b authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Improve log messages from failed social provider requests.

parent 9e017848
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- Build with Go 1.18.1 release.
- Correct naming of delete notifications before/after hook registration functions.
- Improve clarity of devconsole status view graph headers.
- Improve log messages from failed social provider requests.

### Fixed
- Fix data returned by StreamUserList in JS runtime.
+1 −1
Original line number Diff line number Diff line
@@ -868,7 +868,7 @@ func (c *Client) requestRaw(ctx context.Context, provider, path string, headers
	case 401:
		return nil, fmt.Errorf("%v error url %v, status code %v, body %s", provider, path, resp.StatusCode, body)
	default:
		c.logger.Warn("error response code from social request", zap.String("provider", provider), zap.Int("code", resp.StatusCode))
		c.logger.Warn("error response code from social request", zap.String("provider", provider), zap.Int("code", resp.StatusCode), zap.String("body", string(body)))
		return nil, fmt.Errorf("%v error url %v, status code %v, body %s", provider, path, resp.StatusCode, body)
	}
}