Use MountConfig.DebugLogger.

geesefs-0-30-9
Aaron Jacobs 2015-07-16 10:47:42 +10:00
parent d914c05369
commit cea9394fd7
1 changed files with 5 additions and 1 deletions

View File

@ -193,7 +193,11 @@ func Mount(
dir string,
server Server,
config *MountConfig) (mfs *MountedFileSystem, err error) {
debugLogger := getDebugLogger()
// Arrange for a non-nil debug logger.
debugLogger := config.DebugLogger
if debugLogger == nil {
debugLogger = log.New(ioutil.Discard, "", 0)
}
// Initialize the struct.
mfs = &MountedFileSystem{