forked from cory/tildefriends
ssb: We can trace request names these days.
This commit is contained in:
parent
e4e050e8e7
commit
0da6abeb98
@ -1674,7 +1674,7 @@ static void _tf_ssb_connection_rpc_recv(tf_ssb_connection_t* connection, uint8_t
|
|||||||
if (callback)
|
if (callback)
|
||||||
{
|
{
|
||||||
char buffer[64];
|
char buffer[64];
|
||||||
snprintf(buffer, sizeof(buffer), "request %d", request_number);
|
snprintf(buffer, sizeof(buffer), "request %s:%d", request_name, request_number);
|
||||||
tf_trace_begin(connection->ssb->trace, buffer);
|
tf_trace_begin(connection->ssb->trace, buffer);
|
||||||
PRE_CALLBACK(connection->ssb, callback);
|
PRE_CALLBACK(connection->ssb, callback);
|
||||||
callback(connection, flags, request_number, val, message, size, user_data);
|
callback(connection, flags, request_number, val, message, size, user_data);
|
||||||
@ -1737,7 +1737,7 @@ static void _tf_ssb_connection_rpc_recv(tf_ssb_connection_t* connection, uint8_t
|
|||||||
if (callback)
|
if (callback)
|
||||||
{
|
{
|
||||||
char buffer[64];
|
char buffer[64];
|
||||||
snprintf(buffer, sizeof(buffer), "request %d", request_number);
|
snprintf(buffer, sizeof(buffer), "request %s:%d", request_name, request_number);
|
||||||
tf_trace_begin(connection->ssb->trace, buffer);
|
tf_trace_begin(connection->ssb->trace, buffer);
|
||||||
PRE_CALLBACK(connection->ssb, callback);
|
PRE_CALLBACK(connection->ssb, callback);
|
||||||
callback(connection, flags, request_number, JS_UNDEFINED, message, size, user_data);
|
callback(connection, flags, request_number, JS_UNDEFINED, message, size, user_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user