From cf7f32e12ca118e51723a87afee05770ea12c066 Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Tue, 9 Apr 2024 20:53:27 -0700 Subject: chore: logging/err cleanup --- internal/authz/model.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/authz/model.go') diff --git a/internal/authz/model.go b/internal/authz/model.go index 1ed61cf..32730c2 100644 --- a/internal/authz/model.go +++ b/internal/authz/model.go @@ -5,6 +5,7 @@ import ( "encoding/csv" "encoding/hex" "fmt" + "log/slog" "math/big" "os" @@ -24,7 +25,7 @@ func (tm TokenMap) LoadTokensFromFile(path string) error { // TODO this should be configurable contents, err := os.Open(path) if err != nil { - fmt.Println("File reading error", err) + slog.Error("File reading error", err) return err } defer contents.Close() -- cgit v1.2.3