Skip to content

Commit

Permalink
Fixes #271
Browse files Browse the repository at this point in the history
Internal API - Get Accounts - Don't log/error #271

#271
  • Loading branch information
pedrorgirardi committed Aug 31, 2023
1 parent bbc82ba commit 383faa6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Major changes and resolved issues

## NEXT
- [Internal API - Get Accounts - Don't log/error #271](https://github.com/Convex-Dev/convex-web/issues/271)

## 2023-08-24
- [Stop logging into files #265](https://github.com/Convex-Dev/convex-web/issues/265)
- [Transfer coins between accounts #213](https://github.com/Convex-Dev/convex-web/issues/213)
Expand Down
6 changes: 3 additions & 3 deletions src/main/clojure/convex_web/web_server.clj
Original file line number Diff line number Diff line change
Expand Up @@ -885,17 +885,17 @@
(cond
(not start-valid?)
(let [message (str "Invalid start: " start ".")]
(log/error (str "Failed to get Accounts; " message))
(log/warn (str "Failed to get Accounts; " message))
(-bad-request-response (error message)))

(not end-valid?)
(let [message (str "Invalid end: " end ".")]
(log/error (str "Failed to get Accounts; " message))
(log/warn (str "Failed to get Accounts; " message))
(-bad-request-response (error message)))

(not range-valid?)
(let [message (str "Invalid range: [" start ":" end "].")]
(log/error (str "Failed to get Accounts; " message))
(log/warn (str "Failed to get Accounts; " message))
(-bad-request-response (error message)))

:else
Expand Down

0 comments on commit 383faa6

Please sign in to comment.