Răsfoiți Sursa

lib/fs: Use correct facility name

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4710
Simon Frei 8 ani în urmă
părinte
comite
80079e8322
2 a modificat fișierele cu 2 adăugiri și 5 ștergeri
  1. 1 4
      lib/fs/basicfs_watch_test.go
  2. 1 1
      lib/fs/filesystem.go

+ 1 - 4
lib/fs/basicfs_watch_test.go

@@ -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() {

+ 1 - 1
lib/fs/filesystem.go

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