internal logging library
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"ruben/inventory2/internal/logging"
|
||||
"time"
|
||||
|
||||
"github.com/jackc/pgx/v5"
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
|
||||
type (
|
||||
Store struct {
|
||||
log *slog.Logger
|
||||
log *logging.Logger
|
||||
db *pgxpool.Pool
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ type (
|
||||
}
|
||||
)
|
||||
|
||||
func NewStore(logger *slog.Logger, db *pgxpool.Pool) *Store {
|
||||
func NewStore(logger *logging.Logger, db *pgxpool.Pool) *Store {
|
||||
return &Store{
|
||||
log: logger,
|
||||
db: db,
|
||||
|
||||
Reference in New Issue
Block a user