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
@@ -5,7 +5,6 @@ import (
"encoding/json"
"errors"
"fmt"
"log/slog"
"net/url"
"time"
@@ -16,6 +15,7 @@ import (
"golang.org/x/oauth2"
"ruben/inventory2/internal/consts"
"ruben/inventory2/internal/logging"
)
// TODO: move these to a config?
@@ -37,7 +37,7 @@ const (
type (
// Authenticator is used to authenticate our users.
Authenticator struct {
log *slog.Logger
log *logging.Logger
*oidc.Provider
oauth2.Config
db *pgxpool.Pool
@@ -64,7 +64,7 @@ type (
func New(
ctx context.Context,
db *pgxpool.Pool,
logger *slog.Logger,
logger *logging.Logger,
) (*Authenticator, error) {
provider, err := oidc.NewProvider(
ctx,