diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-20 14:25:02 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-20 14:25:02 +0200 |
commit | 324003acc09509c005ab08f45636d88139150c54 (patch) | |
tree | 770e1056c8838f3408b135a05876d8cf958d8b1e /src/exchangedb | |
parent | 9391ed529c5b20dd8ad1114e28ca1e6dcb1de190 (diff) |
log cause for /admin/add/incoming failures
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index eee31bdc0..4814468be 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -1657,8 +1657,9 @@ postgres_reserves_in_insert (void *cls, struct TALER_EXCHANGEDB_Reserve reserve; struct GNUNET_TIME_Absolute expiry; - if (GNUNET_OK != postgres_start (cls, - session)) + if (GNUNET_OK != + postgres_start (cls, + session)) { GNUNET_break (0); return GNUNET_SYSERR; @@ -1731,6 +1732,8 @@ postgres_reserves_in_insert (void *cls, { /* This means we had the same reserve/justification/details before */ + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Uniqueness violation, deposit details already known\n"); PQclear (result); postgres_rollback (cls, session); @@ -1775,6 +1778,8 @@ postgres_reserves_in_insert (void *cls, return GNUNET_OK; rollback: + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Transaction failed, doing rollback\n"); postgres_rollback (cls, session); return GNUNET_SYSERR; |