-saner logging

This commit is contained in:
Christian Grothoff 2023-01-06 13:30:48 +01:00
parent cea4e6ba61
commit 463b3af4ea
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 7 additions and 6 deletions

View File

@ -48,3 +48,4 @@ CREATE INDEX work_shards_by_job_name_completed_last_attempt_index
CREATE INDEX work_shards_by_end_row_index
ON work_shards
(end_row DESC);

View File

@ -88,7 +88,7 @@ TEH_PG_begin_shard (void *cls,
TEH_PG_rollback (pg);
return qs;
case GNUNET_DB_STATUS_SOFT_ERROR:
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Serialization error on getting open shard\n");
TEH_PG_rollback (pg);
continue;
@ -122,7 +122,7 @@ TEH_PG_begin_shard (void *cls,
TEH_PG_rollback (pg);
return qs;
case GNUNET_DB_STATUS_SOFT_ERROR:
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Serialization error on claiming open shard\n");
TEH_PG_rollback (pg);
continue;
@ -172,7 +172,7 @@ TEH_PG_begin_shard (void *cls,
TEH_PG_rollback (pg);
return qs;
case GNUNET_DB_STATUS_SOFT_ERROR:
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Serialization error on getting last shard\n");
TEH_PG_rollback (pg);
continue;
@ -222,7 +222,7 @@ TEH_PG_begin_shard (void *cls,
TEH_PG_rollback (pg);
return qs;
case GNUNET_DB_STATUS_SOFT_ERROR:
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Serialization error on claiming next shard\n");
TEH_PG_rollback (pg);
continue;
@ -250,13 +250,13 @@ commit:
TEH_PG_rollback (pg);
return qs;
case GNUNET_DB_STATUS_SOFT_ERROR:
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Serialization error on commit for beginning shard\n");
TEH_PG_rollback (pg);
continue;
case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Claimed new shard\n");
return GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;
}