Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log: merge MAIN_LOG() into G_LOG() #689

Merged
merged 1 commit into from
Jun 7, 2024
Merged

log: merge MAIN_LOG() into G_LOG() #689

merged 1 commit into from
Jun 7, 2024

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
1 check passed
@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.

1 participant