forked from cory/tildefriends
More logging reduction and a trace fix.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3692 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
8075bdfe99
commit
1dd3b3c9aa
@ -1973,7 +1973,7 @@ static bool _tf_ssb_parse_broadcast(const char* in_broadcast, tf_ssb_broadcast_t
|
||||
printf("pton failed\n");
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (strncmp(in_broadcast, "ws:", 3))
|
||||
{
|
||||
printf("Unsupported broadcast: %s\n", in_broadcast);
|
||||
}
|
||||
|
@ -627,7 +627,6 @@ static JSValue _tf_ssb_add_event_listener(JSContext* context, JSValueConst this_
|
||||
else if (strcmp(event_name, "message") == 0)
|
||||
{
|
||||
void* ptr = JS_VALUE_GET_PTR(JS_DupValue(context, callback));
|
||||
printf("add message listener %p\n", ptr);
|
||||
tf_ssb_add_message_added_callback(ssb, _tf_ssb_on_message_added_callback, _tf_ssb_cleanup_value, ptr);
|
||||
}
|
||||
else if (strcmp(event_name, "blob_want_added") == 0)
|
||||
|
@ -111,7 +111,7 @@ void tf_trace_begin(tf_trace_t* trace, const char* name)
|
||||
trace->stack = stack;
|
||||
}
|
||||
tf_trace_stack_t* stack = trace->stack;
|
||||
while (stack->count == 0 && stack->next && stack->count + 1 > _countof(trace->stack->names))
|
||||
while (stack->count == 0 && stack->next && stack->next->count + 1 <= _countof(trace->stack->names))
|
||||
{
|
||||
stack = stack->next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user