From 80079e83226dfaa4f525e344e7686415253b322f Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Sat, 27 Jan 2018 12:52:48 +0000 Subject: [PATCH] lib/fs: Use correct facility name GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4710 --- lib/fs/basicfs_watch_test.go | 5 +---- lib/fs/filesystem.go | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/fs/basicfs_watch_test.go b/lib/fs/basicfs_watch_test.go index a19e914f..51128052 100644 --- a/lib/fs/basicfs_watch_test.go +++ b/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() { diff --git a/lib/fs/filesystem.go b/lib/fs/filesystem.go index de0db356..1b99c6e8 100644 --- a/lib/fs/filesystem.go +++ b/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