Skip to content

Commit

Permalink
Merge branch 'release/0.7.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
DominusKelvin committed Jul 25, 2023
2 parents 0a97d6e + 8c11684 commit f8e5d6e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func main() {
treblle.Configure(treblle.Configuration{
APIKey: "YOUR API KEY HERE",
ProjectID: "YOUR PROJECT ID HERE",
AdditionalFieldsToMask: []string{"password", "card_number"}, // optional, specify additional fields to mask
AdditionalFieldsToMask: []string{"password", "card_number"}, // optional, specify additional fields to mask
}

// rest of your program.
Expand Down
1 change: 1 addition & 0 deletions configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type internalConfiguration struct {
FieldsMap map[string]bool
serverInfo ServerInfo
languageInfo LanguageInfo
Debug bool
}

func Configure(config Configuration) {
Expand Down
2 changes: 1 addition & 1 deletion middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

const (
treblleVersion = "0.7.1"
treblleVersion = "0.7.2"
sdkName = "go"
)

Expand Down
2 changes: 1 addition & 1 deletion response.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func getResponseInfo(response *httptest.ResponseRecorder, startTime time.Time) R
Code: response.Code,
Size: len(responseBytes),
LoadTime: float64(time.Since(startTime).Microseconds()),
Errors: []ErrorInfo{errInfo},
Errors: []ErrorInfo{},
}

bodyJson, _ := json.Marshal(body)
Expand Down
8 changes: 8 additions & 0 deletions treblle.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ const (
timeoutDuration = 2 * time.Second
)

type BaseUrlOptions struct {
Debug bool
}

func getTreblleBaseUrl() string {
if Config.Debug {
return "https://debug.treblle.com/"
}

treblleBaseUrls := []string{
"https://rocknrolla.treblle.com",
"https://punisher.treblle.com",
Expand Down

0 comments on commit f8e5d6e

Please sign in to comment.