diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2021-09-29 10:04:30 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-09-29 12:53:39 +0200 |
| commit | 81cc67e3a14a127f3983fa87c7be1cf9971c824f (patch) | |
| tree | abcacee23d2cf771233f35f835e49abc651c7eea /vm/gce | |
| parent | d82cb92782c3ba0f68f7393b069afb07adfbc585 (diff) | |
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.
Diffstat (limited to 'vm/gce')
| -rw-r--r-- | vm/gce/gce.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } } |
