Skip to content

Commit

Permalink
Logging info
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Dec 11, 2018
1 parent ea5e60b commit 6887c36
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions dkron/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"encoding/json"
"time"

"github.com/sirupsen/logrus"
"github.com/abronan/valkeyrie/store"
"github.com/hashicorp/serf/serf"
"github.com/sirupsen/logrus"
)

const (
Expand Down Expand Up @@ -84,6 +84,11 @@ func (a *Agent) RunQuery(ex *Execution) {
}
rqpJson, _ := json.Marshal(rqp)

log.WithFields(logrus.Fields{
"query": QueryRunJob,
"job_name": job.Name,
}).Info("agent: Sending query")

log.WithFields(logrus.Fields{
"query": QueryRunJob,
"job_name": job.Name,
Expand Down Expand Up @@ -137,7 +142,7 @@ func (a *Agent) SchedulerRestart() {
if a.config.Backend == store.BOLTDB {
a.schedule()
} else {
a.schedulerRestartQuery(string(a.Store.GetLeader()))
a.schedulerRestartQuery(string(a.Store.GetLeader()))
}
})
} else {
Expand Down Expand Up @@ -192,7 +197,7 @@ func (a *Agent) executionDoneQuery(nodes []string, group string) map[string]stri
log.WithFields(logrus.Fields{
"query": QueryExecutionDone,
"members": nodes,
}).Debug("agent: Sending query")
}).Info("agent: Sending query")

qr, err := a.serf.Query(QueryExecutionDone, []byte(group), params)
if err != nil {
Expand Down

0 comments on commit 6887c36

Please sign in to comment.