Skip to content

Commit

Permalink
Update log verbosity level (#127)
Browse files Browse the repository at this point in the history
Signed-off-by: Tapajit Chandra Paul <tapajit@appscode.com>
  • Loading branch information
tapojit047 authored Aug 7, 2024
1 parent 99d096f commit f17f15a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions druid/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func CheckDBReadWriteAccess(druidCoordinatorsClient *Client, druidBrokersClient
if err != nil {
return err, false
}
klog.Info("Successfully updated coordinators config to stop waiting before deleting segment")
klog.V(5).Info("Successfully updated coordinators config to stop waiting before deleting segment")
oldData = DruidHealthDataZero
newData = DruidHealthDataOne
}
Expand Down Expand Up @@ -321,7 +321,7 @@ func (c *Client) SubmitTaskRecurrently(taskType DruidTaskType, dataSource string
return err
}
if taskStatus {
klog.Info("Task successful")
klog.V(5).Info("Task successful")
return nil
}
time.Sleep(6 * time.Second)
Expand Down Expand Up @@ -438,9 +438,8 @@ func (c *Client) CheckTaskStatus(taskID string) (bool, error) {
}

func (c *Client) checkDBReadAccess(oldData string) error {
klog.Info("waiting for the segments to be available for query...")

for i := 0; i < 5; i++ {
klog.V(5).Info("waiting for the segments to be available for query...")
time.Sleep(6 * time.Second)

data, err := c.GetData()
Expand All @@ -449,7 +448,7 @@ func (c *Client) checkDBReadAccess(oldData string) error {
return err
}
if data != oldData {
klog.Info("successfully read ingested data")
klog.V(5).Info("successfully read ingested data")
return nil
}
}
Expand Down

0 comments on commit f17f15a

Please sign in to comment.