aboutsummaryrefslogtreecommitdiffstats
path: root/vm/gce
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2018-11-30 18:12:03 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-11-30 17:12:03 +0000
commit271b354c513a007396686285fa35c96920174d24 (patch)
tree10eac6739201093e389cd325c4572b8a832c5f27 /vm/gce
parentbc6b598a2d3a6dd82a5066d1c9ac742787ac667b (diff)
vm/qemu: improve debug output
* vm/qemu: Improve debug output. When running in debug mode, the number of VMs is reduced to 1. State this in the debug output. * vm/qemu: Don't start debug output with a capital letter. As requested by Dimitry. * vm: Provide debug message when reduing number of VMs. Apply this change to all affected platforms for consistency. Suggested by Dmitry. * Add myself to AUTHORS/CONTRIBUTORS files. * vm: Fix compilation issues missed in earlier commit. * vm: Use logging to write debug message.
Diffstat (limited to 'vm/gce')
-rw-r--r--vm/gce/gce.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/gce/gce.go b/vm/gce/gce.go
index 32f3e2947..44f9e5d08 100644
--- a/vm/gce/gce.go
+++ b/vm/gce/gce.go
@@ -74,7 +74,8 @@ func ctor(env *vmimpl.Env) (vmimpl.Pool, error) {
if cfg.Count < 1 || cfg.Count > 1000 {
return nil, fmt.Errorf("invalid config param count: %v, want [1, 1000]", cfg.Count)
}
- if env.Debug {
+ if env.Debug && cfg.Count > 1 {
+ log.Logf(0, "limiting number of VMs from %v to 1 in debug mode", cfg.Count)
cfg.Count = 1
}
if cfg.MachineType == "" {