diff options
Diffstat (limited to 'backend/api/handler.go')
| -rw-r--r-- | backend/api/handler.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/api/handler.go b/backend/api/handler.go index 9f8849c..05a185a 100644 --- a/backend/api/handler.go +++ b/backend/api/handler.go @@ -4,7 +4,7 @@ import ( "context" "encoding/json" "errors" - "log" + "log/slog" "net/http" "strconv" "time" @@ -47,7 +47,7 @@ func (h *Handler) PostLogin(ctx context.Context, request PostLoginRequestObject) password := request.Body.Password userID, err := auth.Login(ctx, h.q, username, password) if err != nil { - log.Printf("login failed: %v", err) + slog.Error("login failed", "error", err) var msg string if errors.Is(err, auth.ErrForteeLoginTimeout) { msg = "ログインに失敗しました" |
