Skip to content

Commit

Permalink
Removing PrintDefaults since it's no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoff Bourne committed Mar 30, 2017
1 parent 749e621 commit d693088
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions check/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ import (

"time"

log "github.com/Sirupsen/logrus"
protocheck "github.com/racker/rackspace-monitoring-poller/protocol/check"
"github.com/racker/rackspace-monitoring-poller/protocol/metric"
"github.com/racker/rackspace-monitoring-poller/utils"
Expand Down Expand Up @@ -363,27 +362,3 @@ func (ch *Base) readLimit(conn io.Reader, limit int64) ([]byte, error) {
}
return bytes[:count], nil
}

// PrintDefaults logs the check's default data.
// (whatever is provided in the base)
func (ch *Base) PrintDefaults() {
var targetAlias string
var targetHostname string
if ch.TargetAlias != nil {
targetAlias = *ch.TargetAlias
}
if ch.TargetHostname != nil {
targetHostname = *ch.TargetHostname
}
log.WithFields(log.Fields{
"type": ch.CheckType,
"period": ch.Period,
"timeout": ch.Timeout,
"disabled": ch.Disabled,
"ipaddresses": ch.IpAddresses,
"target_alias": targetAlias,
"target_hostname": targetHostname,
"target_resolver": ch.TargetResolver,
"details": string(*ch.RawDetails),
}).Infof("New check %v", ch.GetID())
}

0 comments on commit d693088

Please sign in to comment.