mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 06:42:21 +08:00
Add check for Env before log
This commit is contained in:
@ -2,6 +2,7 @@ package postgres
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"github.com/grafana/grafana/pkg/setting"
|
||||
"net/url"
|
||||
"strconv"
|
||||
|
||||
@ -19,7 +20,9 @@ func newPostgresQueryEndpoint(datasource *models.DataSource) (tsdb.TsdbQueryEndp
|
||||
logger := log.New("tsdb.postgres")
|
||||
|
||||
cnnstr := generateConnectionString(datasource)
|
||||
logger.Debug("getEngine", "connection", cnnstr)
|
||||
if setting.Env == setting.DEV {
|
||||
logger.Debug("getEngine", "connection", cnnstr)
|
||||
}
|
||||
|
||||
config := tsdb.SqlQueryEndpointConfiguration{
|
||||
DriverName: "postgres",
|
||||
|
Reference in New Issue
Block a user