Skip to content

Conversation

@AltraMayor
Copy link
Owner

This commit drops MAIN_LOG() and makes calling G_LOG() in non-lcore contexts safe because it is very error prone to identify when one should use MAIN_LOG() instead of G_LOG(). For example, lib/net.c:lsc_event_callback(), which runs in a non-lcore context, calls log_if_name(). But log_if_name() uses G_LOG() because it is also called in lcore contexts.

This commit drops MAIN_LOG() and makes calling G_LOG() in non-lcore
contexts safe because it is very error prone to identify when one
should use MAIN_LOG() instead of G_LOG(). For example,
lib/net.c:lsc_event_callback(), which runs in a non-lcore context,
calls log_if_name(). But log_if_name() uses G_LOG() because
it is also called in lcore contexts.
@AltraMayor AltraMayor added this to the Version 1.2 milestone Jun 7, 2024
@AltraMayor AltraMayor merged commit 8e13d4d into v1.2.0-dev Jun 7, 2024
@AltraMayor AltraMayor deleted the uni_log branch June 7, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants