-log all BEGIN statements
This commit is contained in:
parent
361f534dbb
commit
7193261e52
@ -3860,10 +3860,9 @@ postgres_start (void *cls,
|
|||||||
if (GNUNET_SYSERR ==
|
if (GNUNET_SYSERR ==
|
||||||
postgres_preflight (pg))
|
postgres_preflight (pg))
|
||||||
return GNUNET_SYSERR;
|
return GNUNET_SYSERR;
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
"Starting transaction named %s on %p\n",
|
"Starting transaction `%s'\n",
|
||||||
name,
|
name);
|
||||||
pg->conn);
|
|
||||||
if (GNUNET_OK !=
|
if (GNUNET_OK !=
|
||||||
GNUNET_PQ_exec_statements (pg->conn,
|
GNUNET_PQ_exec_statements (pg->conn,
|
||||||
es))
|
es))
|
||||||
@ -3898,10 +3897,9 @@ postgres_start_read_committed (void *cls,
|
|||||||
if (GNUNET_SYSERR ==
|
if (GNUNET_SYSERR ==
|
||||||
postgres_preflight (pg))
|
postgres_preflight (pg))
|
||||||
return GNUNET_SYSERR;
|
return GNUNET_SYSERR;
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
"Starting transaction named %s on %p\n",
|
"Starting READ COMMITTED transaction `%s`\n",
|
||||||
name,
|
name);
|
||||||
pg->conn);
|
|
||||||
if (GNUNET_OK !=
|
if (GNUNET_OK !=
|
||||||
GNUNET_PQ_exec_statements (pg->conn,
|
GNUNET_PQ_exec_statements (pg->conn,
|
||||||
es))
|
es))
|
||||||
@ -9677,6 +9675,9 @@ postgres_start_deferred_wire_out (void *cls)
|
|||||||
return GNUNET_SYSERR;
|
return GNUNET_SYSERR;
|
||||||
}
|
}
|
||||||
pg->transaction_name = "deferred wire out";
|
pg->transaction_name = "deferred wire out";
|
||||||
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
|
"Starting READ COMMITTED DEFERRED transaction `%s'\n",
|
||||||
|
pg->transaction_name);
|
||||||
return GNUNET_OK;
|
return GNUNET_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user