2017-08-19 14:36:56 +00:00
|
|
|
// Copyright (C) 2015 The Syncthing Authors.
|
|
|
|
//
|
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
// You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
package fs
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/syncthing/syncthing/lib/logger"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2017-12-24 22:26:05 +00:00
|
|
|
l = logger.DefaultLogger.NewFacility("fs", "Filesystem access")
|
2017-08-19 14:36:56 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2018-02-05 10:07:56 +00:00
|
|
|
logger.DefaultLogger.NewFacility("walkfs", "Filesystem access while walking")
|
2019-10-04 11:03:34 +00:00
|
|
|
if logger.DefaultLogger.ShouldDebug("walkfs") {
|
2018-02-05 10:07:56 +00:00
|
|
|
l.SetDebug("fs", true)
|
|
|
|
}
|
2017-08-19 14:36:56 +00:00
|
|
|
}
|