feat(integrations): removed user's creds from error message

This commit is contained in:
Alexander 2024-12-03 15:23:18 +01:00
parent 594d57905f
commit eeb1d616bc
4 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,7 @@ func (d *dataDogClient) FetchSessionData(credentials interface{}, sessionID uint
// Not a struct, will try to parse as JSON string
strCfg, ok := credentials.(map[string]interface{})
if !ok {
return nil, fmt.Errorf("invalid credentials, got: %+v", credentials)
return nil, fmt.Errorf("invalid credentials")
}
cfg = datadogConfig{}
if site, ok := strCfg["site"].(string); ok {

View file

@ -32,7 +32,7 @@ func (d *dynatraceClient) FetchSessionData(credentials interface{}, sessionID ui
if !ok {
strCfg, ok := credentials.(map[string]interface{})
if !ok {
return nil, fmt.Errorf("invalid credentials, got: %+v", credentials)
return nil, fmt.Errorf("invalid credentials")
}
cfg = dynatraceConfig{}
if val, ok := strCfg["environment"].(string); ok {

View file

@ -29,7 +29,7 @@ func (e *elasticsearchClient) FetchSessionData(credentials interface{}, sessionI
if !ok {
strCfg, ok := credentials.(map[string]interface{})
if !ok {
return nil, fmt.Errorf("invalid credentials, got: %+v", credentials)
return nil, fmt.Errorf("invalid credentials")
}
cfg = elasticsearchConfig{}
if val, ok := strCfg["url"].(string); ok {

View file

@ -35,7 +35,7 @@ func (s *sentryClient) FetchSessionData(credentials interface{}, sessionID uint6
if !ok {
strCfg, ok := credentials.(map[string]interface{})
if !ok {
return nil, fmt.Errorf("invalid credentials, got: %+v", credentials)
return nil, fmt.Errorf("invalid credentials")
}
cfg = sentryConfig{}
if val, ok := strCfg["organization_slug"].(string); ok {