Skip to content

Commit b015b00

Browse files
committed
show if auth or not instead of leaking token
1 parent 16bf813 commit b015b00

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

main.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,13 @@ func process(diff discovery.Diff[string]) {
8282
return
8383
}
8484

85-
log.Debug("Sending diff to ", config.ENV.ENDPOINT, " with ", "TOKEN:", config.ENV.ENDPOINT_KEY)
85+
withOrWithout := "out"
86+
87+
if config.ENV.ENDPOINT_KEY != "" {
88+
withOrWithout = ""
89+
}
90+
91+
log.Debug("Sending diff to ", config.ENV.ENDPOINT, " with", withOrWithout, " Auth")
8692

8793
resp, err := discovery.SendDiff(config.ENV.SERVER_NAME, config.ENV.ENDPOINT, config.ENV.ENDPOINT_KEY, diff)
8894

0 commit comments

Comments
 (0)