Ensure logging is off for integration test commands

This commit is contained in:
Kristoffer Dalby 2021-11-07 10:40:05 +00:00
parent d47b83f80b
commit 9a26fa7989

View File

@ -32,7 +32,7 @@ func ExecuteCommand(resource *dockertest.Resource, cmd []string, env []string) (
exitCode, err := resource.Exec(
cmd,
dockertest.ExecOptions{
Env: append(env, "LOG_LEVEL=error"),
Env: append(env, "HEADSCALE_LOG_LEVEL=disabled"),
StdOut: &stdout,
StdErr: &stderr,
},