Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update log verbosity level #127

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading