Skip to content

Commit

Permalink
pkg: Fix logging typos. (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
thylong committed Sep 1, 2021
1 parent 97e45ee commit 70b91d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/controller/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (v *VarnishController) watchConfigUpdates(ctx context.Context, c *exec.Cmd,

select {
case tmplContents := <-v.vclTemplateUpdates:
glog.Infof("VCL template was updated")
glog.Infof("VCL template has been updated")

tmpl, err := template.New("vcl").Parse(string(tmplContents))
if err != nil {
Expand Down
10 changes: 5 additions & 5 deletions pkg/signaller/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ func (b *Signaller) ProcessSignalQueue() {
for signal := range b.signalQueue {
response, err := client.Do(signal.Request)
if err != nil {
glog.Errorf("singal broadcast error: %v", err.Error())
glog.Infof("retring in %v", b.RetryBackoff)
glog.Errorf("signal broadcast error: %v", err.Error())
glog.Infof("retrying in %v", b.RetryBackoff)
b.Retry(signal)
} else if response.StatusCode >= 400 && response.StatusCode <= 599 {
glog.Warningf("singal broadcast error: unusual status code from %s: %v", response.Request.URL.Host, response.Status)
glog.Infof("retring in %v", b.RetryBackoff)
glog.Warningf("signal broadcast error: unusual status code from %s: %v", response.Request.URL.Host, response.Status)
glog.Infof("retrying in %v", b.RetryBackoff)
b.Retry(signal)
} else {
glog.V(5).Infof("recieved a signal response from %s: %+v", response.Request.URL.Host, response)
glog.V(5).Infof("received a signal response from %s: %+v", response.Request.URL.Host, response)
}

if response != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/signaller/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func NewSignaller(
queueLength int,
) *Signaller {
if queueLength < 0 {
glog.Warning("signaller processing queue cannot have negative length, fall back to default value: 0")
queueLength = 0
glog.Warningf("signaller processing queue cannot have a negative length, falling back to default value: %d", queueLength)
}

return &Signaller{
Expand Down

0 comments on commit 70b91d1

Please sign in to comment.