Skip to content

Commit

Permalink
Add some notes
Browse files Browse the repository at this point in the history
  • Loading branch information
howbazaar committed Dec 19, 2019
1 parent 6ebf234 commit 08930b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions apiserver/facades/agent/uniter/uniter.go
Original file line number Diff line number Diff line change
Expand Up @@ -1474,6 +1474,7 @@ func (u *UniterAPI) EnterScope(args params.RelationUnits) (params.ErrorResults,
// reflects the purpose of the attribute value. We'll deprecate private-address.
settings["ingress-address"] = ingressAddress
} else {
// Is this worth logging if there is no error?
logger.Warningf("cannot set ingress/egress addresses for unit %v in relation %v: %v",
unitTag.Id(), relTag, err)
}
Expand Down
2 changes: 2 additions & 0 deletions core/raftlease/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ func (s *Store) runOnLeader(command *Command, stop <-chan struct{}) error {

select {
case <-s.config.Clock.After(s.config.ForwardTimeout):
// scaletest hit this a *lot*
// perhaps we need to consider batching messages to run on the leader?
logger.Infof("timeout")
s.record(command.Operation, "timeout", start)
return lease.ErrTimeout
Expand Down
1 change: 1 addition & 0 deletions provider/ec2/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func (environProvider) Version() int {

// Open is specified in the EnvironProvider interface.
func (p environProvider) Open(args environs.OpenParams) (environs.Environ, error) {
// This really shouldn't be INFO, it happens a lot.
logger.Infof("opening model %q", args.Config.Name())

e := new(environ)
Expand Down

0 comments on commit 08930b6

Please sign in to comment.