We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abfcf97 + bdd39b4 commit b36411aCopy full SHA for b36411a
cmd/start/main.go
@@ -119,11 +119,11 @@ func scaleToZeroWorker(ctx context.Context, node *flypg.Node) error {
119
case <-ticker.C:
120
current, err := getCurrentConnCount(ctx, node)
121
if err != nil {
122
- fmt.Printf("Failed to get current connection count will try again in %s\n", duration.String())
+ log.Printf("Failed to get current connection count will try again in %s\n", duration.String())
123
continue
124
}
125
- fmt.Printf("Current connection count is %d\n", current)
126
- if current > 1 {
+ log.Printf("Current connection count is %d\n", current)
+ if current >= 1 {
127
128
129
return fmt.Errorf("scale to zero condition hit")
0 commit comments