17296: Log when/why gateway server is disabled.
[arvados.git] / lib / crunchrun / crunchrun.go
index 77cfcf68b7342a6b28fc912efdb577f59d687cdf..5638e81e4de6670673dc2163577768323919d551 100644 (file)
@@ -1695,9 +1695,11 @@ func (command) RunCommand(prog string, args []string, stdin io.Reader, stdout, s
        if gwAuthSecret == "" {
                // not safe to run a gateway service without an auth
                // secret
+               cr.CrunchLog.Printf("Not starting a gateway server (GatewayAuthSecret was not provided by dispatcher)")
        } else if gwListen := os.Getenv("GatewayAddress"); gwListen == "" {
                // dispatcher did not tell us which external IP
                // address to advertise --> no gateway service
+               cr.CrunchLog.Printf("Not starting a gateway server (GatewayAddress was not provided by dispatcher)")
        } else if de, ok := cr.executor.(*dockerExecutor); ok {
                cr.gateway = Gateway{
                        Address:            gwListen,