Skip to content

Commit

Permalink
#282 Debug - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Mar 4, 2025
1 parent 465c17c commit 267ed6f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion senzingconfig/senzingconfig_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (senzingConfig *BasicSenzingConfig) getAbstractFactory(ctx context.Context)
if len(senzingConfig.GrpcTarget) == 0 {
senzingSettings := senzingConfig.SenzingSettings

fmt.Printf(">>>>>> SenzingSettings: %s\n", senzingSettings)
fmt.Printf(">>>>>> SenzingSettings: %s\n", reverseString(senzingSettings))

// Handle case of SQLite in-memory database.
// TODO: Refactor to different, reusable, location.
Expand Down Expand Up @@ -805,3 +805,11 @@ func (senzingConfig *BasicSenzingConfig) UnregisterObserver(ctx context.Context,

return err
}

func reverseString(s string) string {
runes := []rune(s)
for i, j := 0, len(runes)-1; i < j; i, j = i+1, j-1 {
runes[i], runes[j] = runes[j], runes[i]
}
return string(runes)
}

0 comments on commit 267ed6f

Please sign in to comment.