lib/fs: Use correct facility name

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4710
This commit is contained in:
Simon Frei authored and Jakob Borg committed 2018-01-27 12:52:48 +00:00
1 parent ae760798e1
commit 80079e8322
2 files changed
+2 -5

No files matched your search

+1 -4
View File
@@ -35,10 +35,7 @@ func TestMain(m *testing.M) {
panic("Cannot get real path to working dir") panic("Cannot get real path to working dir")
} }
testDirAbs = filepath.Join(dir, testDir) testDirAbs = filepath.Join(dir, testDir)
testFs = newBasicFilesystem(testDirAbs) testFs = NewFilesystem(FilesystemTypeBasic, testDirAbs)
if l.ShouldDebug("filesystem") {
testFs = &logFilesystem{testFs}
}
backendBuffer = 10 backendBuffer = 10
defer func() { defer func() {
+1 -1
View File
@@ -170,7 +170,7 @@ func NewFilesystem(fsType FilesystemType, uri string) Filesystem {
} }
} }
if l.ShouldDebug("filesystem") { if l.ShouldDebug("fs") {
fs = &logFilesystem{fs} fs = &logFilesystem{fs}
} }
return fs return fs