diff --git a/cmd/install_windows.go b/cmd/install_windows.go index 5036831d..7e4dca19 100644 --- a/cmd/install_windows.go +++ b/cmd/install_windows.go @@ -90,8 +90,5 @@ func getCustomServeFlags() []string { if logCompress != defaultLogCompress { result = append(result, "--"+logCompressFlag+"=true") } - if profiler != defaultProfiler { - result = append(result, "--"+profilerFlag+"=true") - } return result } diff --git a/cmd/start_windows.go b/cmd/start_windows.go index 714051f8..2a66f370 100644 --- a/cmd/start_windows.go +++ b/cmd/start_windows.go @@ -29,7 +29,6 @@ var ( LogMaxAge: logMaxAge, LogCompress: logCompress, LogVerbose: logVerbose, - Profiler: profiler, Shutdown: make(chan bool), } winService := service.WindowsService{ diff --git a/service/service_windows.go b/service/service_windows.go index abeff543..f945d5ed 100644 --- a/service/service_windows.go +++ b/service/service_windows.go @@ -15,6 +15,7 @@ import ( "github.com/drakkan/sftpgo/ftpd" "github.com/drakkan/sftpgo/httpd" "github.com/drakkan/sftpgo/logger" + "github.com/drakkan/sftpgo/telemetry" "github.com/drakkan/sftpgo/webdavd" )