From 81cc67e3a14a127f3983fa87c7be1cf9971c824f Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 29 Sep 2021 10:04:30 +0000 Subject: vm/gce: adjust log level for timeout errors These messages are of relevance to debugging problems on syz-ci's side, but due to log level 1 they are not saved to logs by default. Set their log level to 0. --- vm/gce/gce.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm') diff --git a/vm/gce/gce.go b/vm/gce/gce.go index 14b59c522..ef810fbb4 100644 --- a/vm/gce/gce.go +++ b/vm/gce/gce.go @@ -308,13 +308,13 @@ func (inst *instance) Run(timeout time.Duration, stop <-chan bool, command strin } else if merr, ok := err.(vmimpl.MergerError); ok && merr.R == conRpipe { // Console connection must never fail. If it does, it's either // instance preemption or a GCE bug. In either case, not a kernel bug. - log.Logf(1, "%v: gce console connection failed with %v", inst.name, merr.Err) + log.Logf(0, "%v: gce console connection failed with %v", inst.name, merr.Err) err = vmimpl.ErrTimeout } else { // Check if the instance was terminated due to preemption or host maintenance. time.Sleep(5 * time.Second) // just to avoid any GCE races if !inst.GCE.IsInstanceRunning(inst.name) { - log.Logf(1, "%v: ssh exited but instance is not running", inst.name) + log.Logf(0, "%v: ssh exited but instance is not running", inst.name) err = vmimpl.ErrTimeout } } -- cgit mrf-deployment