Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove extra logging
  • Loading branch information
kyleconroy committed Jun 5, 2024
commit d053086468a39b54e47b2b0fc5b40fe1cc96355b
3 changes: 0 additions & 3 deletions internal/dbmanager/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"hash/fnv"
"io"
"log/slog"
"net/url"
"strings"

Expand Down Expand Up @@ -83,11 +82,9 @@ func (m *ManagedClient) CreateDatabase(ctx context.Context, req *CreateDatabaseR

var datname string
if err := row.Scan(&datname); err == nil {
slog.Info("database exists", "name", name)
return nil, nil
}

slog.Info("creating database", "name", name)
if _, err := pool.Exec(ctx, fmt.Sprintf(`CREATE DATABASE "%s"`, name)); err != nil {
return nil, err
}
Expand Down