19377: Improve log message about skipping health check during diags.
authorTom Clegg <tom@curii.com>
Tue, 25 Oct 2022 14:45:41 +0000 (10:45 -0400)
committerTom Clegg <tom@curii.com>
Tue, 25 Oct 2022 14:45:41 +0000 (10:45 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

lib/diagnostics/cmd.go

index 888503b551b4f8ee86a2115846d44df3da32dac9..c944db66607d58a612cf2febdc17816477786d42 100644 (file)
@@ -62,6 +62,7 @@ func (Command) RunCommand(prog string, args []string, stdin io.Reader, stdout, s
 }
 
 // docker save hello-world > hello-world.tar
+//
 //go:embed hello-world.tar
 var HelloWorldDockerImage []byte
 
@@ -156,7 +157,7 @@ func (diag *diagnoser) runtests() {
                        return err
                }
                if cluster.SystemRootToken != os.Getenv("ARVADOS_API_TOKEN") {
-                       diag.infof("skipping because provided token is not SystemRootToken")
+                       diag.infof("skipping because SystemRootToken read from %s does not match $ARVADOS_API_TOKEN (consider using 'arvados-client sudo diagnostics' to load endpoint and token from config file instead of environment)", ldr.Path)
                        return nil
                }
                agg := &health.Aggregator{Cluster: cluster}