diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-04 17:01:59 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-04 17:01:59 +0200 |
commit | 081ffe994a6d39cbd332eefe6f58f8015154e4cb (patch) | |
tree | 79272a55aa825135a836a22999b8cde44c212be8 /src/exchangedb | |
parent | 1731f5dc77422e3b87294616c3f94b055803a622 (diff) |
expand logging of HARD errors in DB reserve inserts
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index 6c6330556..63ed8874e 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -1912,7 +1912,10 @@ postgres_reserves_in_insert (void *cls, "reserve_create", params); if (0 > qs) + { + GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR != qs); return qs; + } if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs) { /* Maybe DB did not detect serializiability error already, @@ -1938,7 +1941,10 @@ postgres_reserves_in_insert (void *cls, "reserves_in_add_transaction", params); if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs) + { + GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR != qs); return qs; + } } if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == reserve_exists) @@ -1957,7 +1963,7 @@ postgres_reserves_in_insert (void *cls, balance)) { /* currency overflow or incompatible currency */ - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Attempt to deposit incompatible amount into reserve\n"); return GNUNET_DB_STATUS_HARD_ERROR; } |