From acc70111c886c848de11c7830bd148aceb855049 Mon Sep 17 00:00:00 2001 From: ditatompel Date: Thu, 30 May 2024 19:41:03 +0700 Subject: [PATCH] fix: slog args message become slog.Attr --- internal/monero/monero.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/monero/monero.go b/internal/monero/monero.go index 36f8c7f..5841b7a 100644 --- a/internal/monero/monero.go +++ b/internal/monero/monero.go @@ -73,7 +73,7 @@ func (r *MoneroRepo) Node(id int) (Node, error) { var node Node err := r.db.Get(&node, `SELECT * FROM tbl_node WHERE id = ?`, id) if err != nil && err != sql.ErrNoRows { - slog.Error("WARN:", err) + slog.Error(err.Error()) return node, errors.New("Can't get node information") } if err == sql.ErrNoRows {