ext/common/UnionStation/Core.h in passenger-4.0.45 vs ext/common/UnionStation/Core.h in passenger-4.0.46
- old
+ new
@@ -379,10 +379,13 @@
unsigned int nparams = sizeof(params) / sizeof(StaticString);
// Get a connection to the logging server.
ConnectionPtr connection = checkoutConnection();
if (connection == NULL) {
+ P_TRACE(2, "Created NULL Union Station transaction: group=" << groupName <<
+ ", category=" << category << ", txnId=" <<
+ StaticString(txnId, txnIdEnd - txnId));
return createNullTransaction();
}
// Send request, process reply.
if (sendRequest(connection, params, nparams, true)) {
@@ -393,11 +396,17 @@
string(txnId, txnIdEnd - txnId),
groupName,
category,
unionStationKey);
guard.clear();
+ P_TRACE(2, "Created new Union Station transaction: group=" << groupName <<
+ ", category=" << category << ", txnId=" <<
+ StaticString(txnId, txnIdEnd - txnId));
return transaction;
} else {
+ P_TRACE(2, "Created NULL Union Station transaction: group=" << groupName <<
+ ", category=" << category << ", txnId=" <<
+ StaticString(txnId, txnIdEnd - txnId));
return createNullTransaction();
}
}
TransactionPtr continueTransaction(const string &txnId,