feat(integrations): removed user's creds from error message
This commit is contained in:
parent
594d57905f
commit
eeb1d616bc
4 changed files with 4 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue