diff options
Diffstat (limited to 'lib/api/debug.go')
-rw-r--r-- | lib/api/debug.go | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/api/debug.go b/lib/api/debug.go index b5d4b1a1c..e5325a695 100644 --- a/lib/api/debug.go +++ b/lib/api/debug.go @@ -10,18 +10,8 @@ import ( "github.com/syncthing/syncthing/lib/logger" ) -var ( - l = logger.DefaultLogger.NewFacility("api", "REST API") -) +var l = logger.DefaultLogger.NewFacility("api", "REST API") func shouldDebugHTTP() bool { return l.ShouldDebug("api") } - -func init() { - // The debug facility was originally named "http", changed in: - // https://github.com/syncthing/syncthing/pull/5548 - if l.IsTraced("http") { - l.SetDebug("api", true) - } -} |