mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 15:28:35 +00:00
Remove use of "DEBUG" env var from CLI and decouple DEBUG from --log-level
Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
@@ -229,8 +229,8 @@ func (s *DockerDaemonSuite) TestDaemonFlagD(c *check.C) {
|
||||
c.Fatal(err)
|
||||
}
|
||||
content, _ := ioutil.ReadFile(s.d.logFile.Name())
|
||||
if !strings.Contains(string(content), `level=debug`) {
|
||||
c.Fatalf(`Missing level="debug" in log file using -D:\n%s`, string(content))
|
||||
if strings.Contains(string(content), `level=debug`) {
|
||||
c.Fatalf(`Should not have level="debug" in log file using -D:\n%s`, string(content))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -239,8 +239,8 @@ func (s *DockerDaemonSuite) TestDaemonFlagDebug(c *check.C) {
|
||||
c.Fatal(err)
|
||||
}
|
||||
content, _ := ioutil.ReadFile(s.d.logFile.Name())
|
||||
if !strings.Contains(string(content), `level=debug`) {
|
||||
c.Fatalf(`Missing level="debug" in log file using --debug:\n%s`, string(content))
|
||||
if strings.Contains(string(content), `level=debug`) {
|
||||
c.Fatalf(`Should not have level="debug" in log file using --debug:\n%s`, string(content))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -249,8 +249,8 @@ func (s *DockerDaemonSuite) TestDaemonFlagDebugLogLevelFatal(c *check.C) {
|
||||
c.Fatal(err)
|
||||
}
|
||||
content, _ := ioutil.ReadFile(s.d.logFile.Name())
|
||||
if !strings.Contains(string(content), `level=debug`) {
|
||||
c.Fatalf(`Missing level="debug" in log file when using both --debug and --log-level=fatal:\n%s`, string(content))
|
||||
if strings.Contains(string(content), `level=debug`) {
|
||||
c.Fatalf(`Should not have level="debug" in log file when using both --debug and --log-level=fatal:\n%s`, string(content))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user