Merge lp:~rogpeppe/juju-core/290-state-less-logging into lp:~juju/juju-core/trunk
Proposed by
Roger Peppe
Status: | Merged |
---|---|
Approved by: | William Reade |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1179 |
Proposed branch: | lp:~rogpeppe/juju-core/290-state-less-logging |
Merge into: | lp:~juju/juju-core/trunk |
Diff against target: |
88 lines (+11/-6) (has conflicts) 4 files modified
environs/maas/environ.go (+9/-0) state/megawatcher.go (+0/-4) state/unit.go (+1/-1) worker/provisioner/provisioner_test.go (+1/-1) Text conflict in environs/maas/environ.go |
To merge this branch: | bzr merge lp:~rogpeppe/juju-core/290-state-less-logging |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+159315@code.launchpad.net |
Description of the change
state: lose misleading log messages
To post a comment you must log in.
Reviewers: mp+159315_ code.launchpad. net,
Message:
Please take a look.
Description:
state: lose misleading log messages
https:/ /code.launchpad .net/~rogpeppe/ juju-core/ 290-state- less-logging/ +merge/ 159315
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/8821043/
Affected files: maas/environ. go er.go provisioner/ provisioner_ test.go
A [revision details]
M environs/
M state/megawatch
M state/unit.go
M worker/
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: state/megawatch er.go megawatcher. go' er.go 2013-04-16 14:57:08 +0000 er.go 2013-04-17 08:22:26 +0000 org/v2/ mgo" net/juju- core/log" net/juju- core/state/ api/params" net/juju- core/state/ multiwatcher" net/juju- core/state/ watcher" Store, id ForGlobalKey( id.(string) ) ints) updated(st *State, store *multiwatcher. Store, ForGlobalKey( id.(string) ) "constraints for entity with unrecognised global key %q", id) Store, id ForSettingsKey( id.(string) ) "settings for entity with unrecognized key %q", id)
=== modified file 'state/
--- state/megawatch
+++ state/megawatch
@@ -3,7 +3,6 @@
import (
"fmt"
"labix.
- "launchpad.
"launchpad.
"launchpad.
"launchpad.
@@ -224,7 +223,6 @@
func (s *backingStatus) updated(st *State, store *multiwatcher.
interface{}) error {
parentId, ok := backingEntityId
if !ok {
- log.Errorf("status for entity with unrecognised global key %q", id)
return nil
}
info0 := store.Get(parentId)
@@ -264,7 +262,6 @@
func (s *backingConstra
id interface{}) error {
parentId, ok := backingEntityId
if !ok {
- log.Errorf(
return nil
}
info0 := store.Get(parentId)
@@ -299,7 +296,6 @@
func (s *backingSettings) updated(st *State, store *multiwatcher.
interface{}) error {
parentId, url, ok := backingEntityId
if !ok {
- log.Errorf(
return nil
}
info0 := store.Get(parentId)
Index: state/unit.go Find(D{ {"_id", u.doc.Principal }}).One( &pudoc) "principal unit %q", u, u.doc.Principal) "principal unit %q of %q", u.doc.Principal, u)
=== modified file 'state/unit.go'
--- state/unit.go 2013-04-14 22:12:49 +0000
+++ state/unit.go 2013-04-17 08:22:26 +0000
@@ -668,7 +668,7 @@
pudoc := unitDoc{}
err = u.st.units.
if err == mgo.ErrNotFound {
- return "", NotFoundf(
+ return "", NotFoundf(
} else if err != nil {
return "", err
}
Index: environs/ maas/environ. go maas/environ. go' maas/environ. go 2013-04-14 22:12:49 +0000 maas/environ. go 2013-04-17 08:22:26 +0000 machineId string, stateInfo MachineConfig) (*maasInstance, error) {
=== modified file 'environs/
--- environs/
+++ environs/
@@ -325,7 +325,7 @@
// implementation of StartInstance, and to initialize the bootstrap node.
func (environ *maasEnviron) obtainNode(
*state.Info, apiInfo *api.Info, tools *state.Tools, mcfg
*cloudinit.
- log.Debugf( "environs/ maas: starting machine %s in $q running tools
version %q from %q", machineId, env...