gui: Add debug tab to settings (ref #2644)
Just because there are a ton of people struggling to set env vars. Perhaps this should live in advanced settings, and perhaps we should have a button to view the log. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4604 LGTM: calmh, imsodin
This commit is contained in:
committed by
Simon Frei
parent
2547a29dd7
commit
c58b383b6d
@@ -130,4 +130,24 @@ func TestRecorder(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// Check that since works
|
||||
now := time.Now()
|
||||
|
||||
time.Sleep(time.Millisecond)
|
||||
|
||||
lines = r1.Since(now)
|
||||
if len(lines) != 0 {
|
||||
t.Error("unexpected lines")
|
||||
}
|
||||
|
||||
l.Infoln("hah")
|
||||
|
||||
lines = r1.Since(now)
|
||||
if len(lines) != 1 {
|
||||
t.Fatalf("unexpected line count: %d", len(lines))
|
||||
}
|
||||
if lines[0].Message != "hah" {
|
||||
t.Errorf("incorrect line: %s", lines[0])
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user