fix: slog args message become slog.Attr

This commit is contained in:
Cristian Ditaputratama 2024-05-30 19:41:03 +07:00
parent a11986ac0c
commit acc70111c8
Signed by: ditatompel
GPG key ID: 31D3D06D77950979

View file

@ -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 {