feat(error_reporting): integrate error reporting
This commit is contained in:
parent
9a7cfcb097
commit
711a3a874f
9 changed files with 86 additions and 57 deletions
|
@ -55,9 +55,9 @@ func (cl *SettingsClient) SetClientCfg(cfg *sitestore.ClientConfig, token *http.
|
|||
End()
|
||||
}
|
||||
|
||||
func (cl *SettingsClient) ReportError(report *settings.ClientErrorReport, token *http.Cookie) (*http.Response, string, []error) {
|
||||
func (cl *SettingsClient) ReportErrors(reports *settings.ClientErrorReports, token *http.Cookie) (*http.Response, string, []error) {
|
||||
return cl.r.Post(cl.url("/v1/settings/errors")).
|
||||
AddCookie(token).
|
||||
Send(report).
|
||||
Send(reports).
|
||||
End()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue