lib/fs: Use correct facility name

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

View File

@ -35,10 +35,7 @@ func TestMain(m *testing.M) {
panic("Cannot get real path to working dir")
}
testDirAbs = filepath.Join(dir, testDir)
testFs = newBasicFilesystem(testDirAbs)
if l.ShouldDebug("filesystem") {
testFs = &logFilesystem{testFs}
}
testFs = NewFilesystem(FilesystemTypeBasic, testDirAbs)
backendBuffer = 10
defer func() {

View File

@ -170,7 +170,7 @@ func NewFilesystem(fsType FilesystemType, uri string) Filesystem {
}
}
if l.ShouldDebug("filesystem") {
if l.ShouldDebug("fs") {
fs = &logFilesystem{fs}
}
return fs