Skip to content

Commit

Permalink
fix: remove useless logging in PGO
Browse files Browse the repository at this point in the history
  • Loading branch information
ghivert committed Jul 9, 2024
1 parent 1e7c1b4 commit 077b854
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion apps/frontend/src/frontend/view/body/cache.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub fn component() {
Received(msg) -> #(model, e.emit("child", coerce(msg)))
}
},
fn(model) { el.map(model, Received) |> io.debug },
fn(model) { el.map(model, Received) },
dict.from_list([#("content", fn(dyn) { Ok(UpdateContent(coerce(dyn))) })]),
)
}
2 changes: 0 additions & 2 deletions packages/pgo/src/gleam_pgo_ffi.erl
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,11 @@ disconnect(#pgo_pool{pid = Pid}) ->
nil.

query(#pgo_pool{name = Name}, Sql, Arguments) ->
erlang:display(binary_to_list(Sql)),
case pgo:query(Sql, Arguments, #{pool => Name}) of
#{rows := Rows, num_rows := NumRows} ->
{ok, {NumRows, Rows}};

{error, Error} ->
erlang:display(Error),
{error, convert_error(Error)}
end.

Expand Down

0 comments on commit 077b854

Please sign in to comment.