lib/fs: Use correct facility name
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4710
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user