Merge pull request #666 from pulumi/add-logging-to-stack-reading
Log the error when getting a stack fails
This commit is contained in:
commit
662ebcbd94
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
|
"github.com/golang/glog"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/pulumi/pulumi/pkg/backend"
|
"github.com/pulumi/pulumi/pkg/backend"
|
||||||
|
@ -251,6 +252,7 @@ func getLocalStacks() ([]tokens.QName, error) {
|
||||||
name := tokens.QName(stackfn[:len(stackfn)-len(ext)])
|
name := tokens.QName(stackfn[:len(stackfn)-len(ext)])
|
||||||
_, _, _, err := getStack(name)
|
_, _, _, err := getStack(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
glog.V(5).Infof("error reading stack: %v (%v) skipping", name, err)
|
||||||
continue // failure reading the stack information.
|
continue // failure reading the stack information.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue