mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 15:28:35 +00:00
Update logrus to 0.6.6
Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <hugs@docker.com> (github: jfrazelle) Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <princess@docker.com> (github: jfrazelle) Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
@@ -5042,8 +5042,8 @@ func TestBuildSpaces(t *testing.T) {
|
||||
}
|
||||
|
||||
// Skip over the times
|
||||
e1 := err1.Error()[strings.Index(err1.Error(), `level="`):]
|
||||
e2 := err2.Error()[strings.Index(err1.Error(), `level="`):]
|
||||
e1 := err1.Error()[strings.Index(err1.Error(), `level=`):]
|
||||
e2 := err2.Error()[strings.Index(err1.Error(), `level=`):]
|
||||
|
||||
// Ignore whitespace since that's what were verifying doesn't change stuff
|
||||
if strings.Replace(e1, " ", "", -1) != strings.Replace(e2, " ", "", -1) {
|
||||
@@ -5056,8 +5056,8 @@ func TestBuildSpaces(t *testing.T) {
|
||||
}
|
||||
|
||||
// Skip over the times
|
||||
e1 = err1.Error()[strings.Index(err1.Error(), `level="`):]
|
||||
e2 = err2.Error()[strings.Index(err1.Error(), `level="`):]
|
||||
e1 = err1.Error()[strings.Index(err1.Error(), `level=`):]
|
||||
e2 = err2.Error()[strings.Index(err1.Error(), `level=`):]
|
||||
|
||||
// Ignore whitespace since that's what were verifying doesn't change stuff
|
||||
if strings.Replace(e1, " ", "", -1) != strings.Replace(e2, " ", "", -1) {
|
||||
@@ -5070,8 +5070,8 @@ func TestBuildSpaces(t *testing.T) {
|
||||
}
|
||||
|
||||
// Skip over the times
|
||||
e1 = err1.Error()[strings.Index(err1.Error(), `level="`):]
|
||||
e2 = err2.Error()[strings.Index(err1.Error(), `level="`):]
|
||||
e1 = err1.Error()[strings.Index(err1.Error(), `level=`):]
|
||||
e2 = err2.Error()[strings.Index(err1.Error(), `level=`):]
|
||||
|
||||
// Ignore whitespace since that's what were verifying doesn't change stuff
|
||||
if strings.Replace(e1, " ", "", -1) != strings.Replace(e2, " ", "", -1) {
|
||||
|
||||
@@ -244,7 +244,7 @@ func TestDaemonLoggingLevel(t *testing.T) {
|
||||
}
|
||||
d.Stop()
|
||||
content, _ := ioutil.ReadFile(d.logFile.Name())
|
||||
if !strings.Contains(string(content), `level="debug"`) {
|
||||
if !strings.Contains(string(content), `level=debug`) {
|
||||
t.Fatalf(`Missing level="debug" in log file:\n%s`, string(content))
|
||||
}
|
||||
|
||||
@@ -254,7 +254,7 @@ func TestDaemonLoggingLevel(t *testing.T) {
|
||||
}
|
||||
d.Stop()
|
||||
content, _ = ioutil.ReadFile(d.logFile.Name())
|
||||
if strings.Contains(string(content), `level="debug"`) {
|
||||
if strings.Contains(string(content), `level=debug`) {
|
||||
t.Fatalf(`Should not have level="debug" in log file:\n%s`, string(content))
|
||||
}
|
||||
|
||||
@@ -264,7 +264,7 @@ func TestDaemonLoggingLevel(t *testing.T) {
|
||||
}
|
||||
d.Stop()
|
||||
content, _ = ioutil.ReadFile(d.logFile.Name())
|
||||
if !strings.Contains(string(content), `level="debug"`) {
|
||||
if !strings.Contains(string(content), `level=debug`) {
|
||||
t.Fatalf(`Missing level="debug" in log file using -D:\n%s`, string(content))
|
||||
}
|
||||
|
||||
@@ -274,7 +274,7 @@ func TestDaemonLoggingLevel(t *testing.T) {
|
||||
}
|
||||
d.Stop()
|
||||
content, _ = ioutil.ReadFile(d.logFile.Name())
|
||||
if !strings.Contains(string(content), `level="debug"`) {
|
||||
if !strings.Contains(string(content), `level=debug`) {
|
||||
t.Fatalf(`Missing level="debug" in log file using --debug:\n%s`, string(content))
|
||||
}
|
||||
|
||||
@@ -284,7 +284,7 @@ func TestDaemonLoggingLevel(t *testing.T) {
|
||||
}
|
||||
d.Stop()
|
||||
content, _ = ioutil.ReadFile(d.logFile.Name())
|
||||
if !strings.Contains(string(content), `level="debug"`) {
|
||||
if !strings.Contains(string(content), `level=debug`) {
|
||||
t.Fatalf(`Missing level="debug" in log file when using both --debug and --log-level=fatal:\n%s`, string(content))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user