Skip to content

Commit bdd39b4

Browse files
author
Dov Alperin
committed
Use log
1 parent 0e75b1f commit bdd39b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/start/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ func scaleToZeroWorker(ctx context.Context, node *flypg.Node) error {
119119
case <-ticker.C:
120120
current, err := getCurrentConnCount(ctx, node)
121121
if err != nil {
122-
fmt.Printf("Failed to get current connection count will try again in %s\n", duration.String())
122+
log.Printf("Failed to get current connection count will try again in %s\n", duration.String())
123123
continue
124124
}
125-
fmt.Printf("Current connection count is %d\n", current)
125+
log.Printf("Current connection count is %d\n", current)
126126
if current >= 1 {
127127
continue
128128
}

0 commit comments

Comments
 (0)