Skip to content

Conversation

@paulpv
Copy link
Member

@paulpv paulpv commented Aug 14, 2024

I am changing from direct blog(...) calls to the template "recommended" obs_log(...).
This cleans up the code a little bit to get rid of the redundant "[DistroAV] " prefixes.
This also lets the code gate the log levels a little better.
I have waffled on doing this several times but I am finally biting the bullet on this.

blog already uses va_list, so this is not much worse.
The only "worse" part is the dynamically allocated and freed buffer used by snprintf.
Hopefully this does not thrash memory too much.

@paulpv paulpv self-assigned this Aug 14, 2024
@Trouffman Trouffman added this to the 6.0.0 milestone Aug 14, 2024
@paulpv paulpv force-pushed the 6.0.0_tweaks branch 3 times, most recently from ef6b506 to 9ba9a31 Compare August 14, 2024 20:41
I am changing from direct `blog(...)` calls to the template "recommended" `obs_log(...)`.
This cleans up the code a little bit to get rid of the redundant "[DistroAV] " prefixes.
This also lets the code gate the log levels a little better.
I have waffled on doing this several times but I am finally biting the bullet on this.

blog already uses va_list, so this is not much worse.
The only "worse" part is the dynamically allocated and freed buffer used by snprintf.
Hopefully this does not thrash memory too much.
@paulpv paulpv merged commit ba2aedf into 6.0.0_actual Aug 14, 2024
@paulpv paulpv deleted the 6.0.0_tweaks branch August 14, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants