mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-12-18 19:37:33 +00:00
Convert to logxi
This commit is contained in:
@@ -3,10 +3,11 @@ package physical
|
||||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"log"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
log "github.com/mgutz/logxi/v1"
|
||||
|
||||
"github.com/armon/go-metrics"
|
||||
"github.com/lib/pq"
|
||||
)
|
||||
@@ -20,12 +21,12 @@ type PostgreSQLBackend struct {
|
||||
get_query string
|
||||
delete_query string
|
||||
list_query string
|
||||
logger *log.Logger
|
||||
logger log.Logger
|
||||
}
|
||||
|
||||
// newPostgreSQLBackend constructs a PostgreSQL backend using the given
|
||||
// API client, server address, credentials, and database.
|
||||
func newPostgreSQLBackend(conf map[string]string, logger *log.Logger) (Backend, error) {
|
||||
func newPostgreSQLBackend(conf map[string]string, logger log.Logger) (Backend, error) {
|
||||
// Get the PostgreSQL credentials to perform read/write operations.
|
||||
connURL, ok := conf["connection_url"]
|
||||
if !ok || connURL == "" {
|
||||
|
||||
Reference in New Issue
Block a user