Skip to content

Commit

Permalink
Log PostgreSQL errors
Browse files Browse the repository at this point in the history
gmr committed Jul 17, 2015

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 09d81be commit bacf816
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pgsql_listen_worker.erl
Original file line number Diff line number Diff line change
@@ -105,7 +105,11 @@ handle_cast(Cast, State) ->
rabbit_log:error("pgsql_listen_worker unknown_cast: ~p, ~p~n", [Cast, State]),
{noreply, State}.

handle_info({pgsql, Conn, {notification, Channel, _, Payload}}, State) ->
handle_info({epgsql, Conn, {notice, Error}}, State) ->
rabbit_log:error("pgsql_listen_worker postgres error: ~p, ~p~n", [Conn, Error]),
{noreply, State};

handle_info({epgsql, Conn, {notification, Channel, _, Payload}}, State) ->
pgsql_listen_lib:publish_notification(Conn, Channel, Payload, State),
{noreply, State};

0 comments on commit bacf816

Please sign in to comment.