Skip to content

Commit d3a4822

Browse files
committed
Change DEBUG logs to verbosity 4
1 parent 346762e commit d3a4822

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

test/remote/run_remote/run_remote.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ func main() {
110110

111111
if *runInProw {
112112
// Try to get a Boskos project
113-
glog.Infof("Running in PROW")
114-
glog.Infof("Fetching a Boskos loaned project")
113+
glog.V(4).Infof("Running in PROW")
114+
glog.V(4).Infof("Fetching a Boskos loaned project")
115115

116116
p, err := boskos.Acquire("gce-project", "free", "busy")
117117
if err != nil {
@@ -129,13 +129,13 @@ func main() {
129129
go func(c *client.Client, proj string) {
130130
for range time.Tick(time.Minute * 5) {
131131
if err := c.UpdateOne(p.Name, "busy", nil); err != nil {
132-
glog.Infof("[Boskos] Update %s failed with %v", p, err)
132+
glog.Warningf("[Boskos] Update %s failed with %v", p, err)
133133
}
134134
}
135135
}(boskos, p.Name)
136136

137137
// If we're on CI overwrite the service account
138-
glog.Infof("Fetching the default compute service account")
138+
glog.V(4).Infof("Fetching the default compute service account")
139139

140140
c, err := google.DefaultClient(context.TODO(), cloudresourcemanager.CloudPlatformScope)
141141
if err != nil {
@@ -333,7 +333,7 @@ func createInstance(serviceAccount string) (string, error) {
333333

334334
name := "gce-pd-csi-e2e"
335335
myuuid := string(uuid.NewUUID())
336-
glog.V(2).Infof("Creating instance: %v", name)
336+
glog.V(4).Infof("Creating instance: %v", name)
337337

338338
// TODO: Pick a better boot disk image
339339
imageURL := "projects/ml-images/global/images/family/tf-1-9"
@@ -370,7 +370,7 @@ func createInstance(serviceAccount string) (string, error) {
370370

371371
if _, err := computeService.Instances.Get(*project, *zone, i.Name).Do(); err != nil {
372372
op, err := computeService.Instances.Insert(*project, *zone, i).Do()
373-
glog.Infof("Inserted instance %v in project %v, zone %v", i.Name, *project, *zone)
373+
glog.V(4).Infof("Inserted instance %v in project %v, zone %v", i.Name, *project, *zone)
374374
if err != nil {
375375
ret := fmt.Sprintf("could not create instance %s: API error: %v", name, err)
376376
if op != nil {
@@ -381,11 +381,11 @@ func createInstance(serviceAccount string) (string, error) {
381381
return "", fmt.Errorf("could not create instance %s: %+v", name, op.Error)
382382
}
383383
} else {
384-
glog.Infof("Compute service GOT instance %v, skipping instance creation", i.Name)
384+
glog.V(4).Infof("Compute service GOT instance %v, skipping instance creation", i.Name)
385385
}
386386

387387
if pubkey, ok := os.LookupEnv("JENKINS_GCE_SSH_PUBLIC_KEY_FILE"); ok {
388-
glog.Infof("JENKINS_GCE_SSH_PUBLIC_KEY_FILE set to %v, adding public key to Instance", pubkey)
388+
glog.V(4).Infof("JENKINS_GCE_SSH_PUBLIC_KEY_FILE set to %v, adding public key to Instance", pubkey)
389389
// If we're on CI add public SSH keys to the instance
390390
err = addPubKeyToInstance(*project, *zone, i.Name, pubkey)
391391
if err != nil {
@@ -522,7 +522,7 @@ func getComputeClient() (*compute.Service, error) {
522522
}
523523

524524
func deleteInstance(host string) {
525-
glog.Infof("Deleting instance %q", host)
525+
glog.V(4).Infof("Deleting instance %q", host)
526526
_, err := computeService.Instances.Delete(*project, *zone, host).Do()
527527
if err != nil {
528528
if gce.IsGCEError(err, "notFound") {

test/run-e2e.sh

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -x
55

66
readonly PKGDIR=sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
77

8-
go run "$GOPATH/src/${PKGDIR}/test/remote/run_remote/run_remote.go" --logtostderr --v 2 --zone "${ZONE}" --ssh-env gce --delete-instances=true --results-dir=my_test --run-in-prow=true
8+
go run "$GOPATH/src/${PKGDIR}/test/remote/run_remote/run_remote.go" --logtostderr --v 4 --zone "${ZONE}" --ssh-env gce --delete-instances=true --results-dir=my_test --run-in-prow=true

0 commit comments

Comments
 (0)