Skip to content

Commit 62a26c0

Browse files
Use correct url
No clue how this was working before
1 parent 47e7e80 commit 62a26c0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

cmd/submitplan.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func SubmitPlan(signals chan os.Signal, ready chan bool) int {
216216
}
217217

218218
log.WithContext(ctx).WithFields(lf).WithField("item_count", len(queries)).Info("identifying items")
219-
c, _, err := websocket.Dial(ctx, viper.GetString("url"), options)
219+
c, _, err := websocket.Dial(ctx, viper.GetString("gateway-url"), options)
220220
if err != nil {
221221
log.WithContext(ctx).WithFields(lf).WithError(err).Error("Failed to connect to overmind API")
222222
return 1
@@ -236,6 +236,16 @@ func SubmitPlan(signals chan os.Signal, ready chan bool) int {
236236
},
237237
}
238238
err = wspb.Write(ctx, c, &req)
239+
240+
if err == nil {
241+
log.WithContext(ctx).WithFields(log.Fields{
242+
"scope": q.Scope,
243+
"type": q.Type,
244+
"query": q.Query,
245+
"method": q.Method.String(),
246+
"uuid": q.ParseUuid().String(),
247+
}).Trace("Started query")
248+
}
239249
if err != nil {
240250
log.WithContext(ctx).WithFields(lf).WithError(err).WithField("req", &req).Error("Failed to send request")
241251
continue

0 commit comments

Comments
 (0)