add build tag to disable metrics

This commit is contained in:
Nicola Murino
2020-06-19 17:08:51 +02:00
parent b30614e9d8
commit 23a80b01b6
29 changed files with 189 additions and 109 deletions

View File

@@ -11,7 +11,7 @@ import (
_ "github.com/lib/pq"
"github.com/drakkan/sftpgo/logger"
"github.com/drakkan/sftpgo/utils"
"github.com/drakkan/sftpgo/version"
"github.com/drakkan/sftpgo/vfs"
)
@@ -44,7 +44,7 @@ type PGSQLProvider struct {
}
func init() {
utils.AddFeature("+pgsql")
version.AddFeature("+pgsql")
}
func initializePGSQLProvider() error {