Skip to content

Commit 016d2ca

Browse files
Update bucketpath.go
Debugging things
1 parent b0d1268 commit 016d2ca

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/bucketpath.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import (
44
"encoding/base64"
55
"strings"
66
"time"
7-
"unicode/utf8"
7+
"unicode/utf8",
8+
"fmt"
89
)
910

1011
const (
@@ -161,6 +162,7 @@ func GetOptimisticBucketPath(url string, method string) string {
161162
if len(part) >= 64 {
162163
// aW50ZXJhY3Rpb246 is base64 for "interaction:"
163164
if !strings.HasPrefix(part, "aW50ZXJhY3Rpb246") {
165+
fmt.Println("I don't know what this is!")
164166
bucket.WriteString("/!")
165167
continue
166168
}
@@ -174,13 +176,15 @@ func GetOptimisticBucketPath(url string, method string) string {
174176

175177
decodedPart, err := base64.StdEncoding.DecodeString(part)
176178
if err != nil {
179+
fmt.Println("Unknown interaction, why?!")
177180
interactionId = "Unknown"
178181
} else {
179182
interactionId = strings.Split(string(decodedPart), ":")[1]
180183
}
181184

182185
bucket.WriteByte('/')
183186
bucket.WriteString(interactionId)
187+
fmt.Println("My bucket is ", bucket.String())
184188
continue
185189
}
186190

0 commit comments

Comments
 (0)