internal logging library

This commit is contained in:
2026-01-12 23:21:52 -07:00
parent ee2808f8a1
commit 851234d9fa
18 changed files with 349 additions and 159 deletions
+3 -3
View File
@@ -7,7 +7,6 @@ import (
"errors"
"fmt"
"io"
"log/slog"
"net/http"
"net/url"
"strconv"
@@ -18,6 +17,7 @@ import (
"github.com/jackc/pgx/v5/pgxpool"
"ruben/inventory2/internal/domains/platforms/etsy/generated_client"
"ruben/inventory2/internal/logging"
)
//go:generate oapi-codegen -generate types,client -package generated_client -o generated_client/client.go openapi.3.0.2.json
@@ -33,7 +33,7 @@ import (
type (
Platform struct {
log *slog.Logger
log *logging.Logger
oAuthRedirectURI func(acctID int64) string
apiKeystring string
apiSharedSecret string
@@ -65,7 +65,7 @@ const (
scopeTransactionsWrite = "transactions_w" // Update a member's sales data.
)
func NewPlatform(logger *slog.Logger, oAuthRedirectURI func(acctID int64) string, apiKeystring, apiSharedSecret string, db *pgxpool.Pool) *Platform {
func NewPlatform(logger *logging.Logger, oAuthRedirectURI func(acctID int64) string, apiKeystring, apiSharedSecret string, db *pgxpool.Pool) *Platform {
return &Platform{
log: logger,
oAuthRedirectURI: oAuthRedirectURI,