mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
log: add pw_log_topic_custom_enabled()
Add a function to check if a specfic custom log level has been defined for a topic. We can use this to dynamically check if we need to do the connection debug messages. We can also get rid of the conn.* pattern hack to disable connection messages by default.
This commit is contained in:
parent
5152c98789
commit
a3c6b3acae
8 changed files with 14 additions and 22 deletions
|
|
@ -73,10 +73,6 @@
|
|||
|
||||
#define TEMPORARY_MOVE_TIMEOUT (SPA_NSEC_PER_SEC)
|
||||
|
||||
PW_LOG_TOPIC_EXTERN(pulse_conn);
|
||||
|
||||
bool debug_messages = false;
|
||||
|
||||
struct latency_offset_data {
|
||||
int64_t prev_latency_offset;
|
||||
uint8_t initialized:1;
|
||||
|
|
@ -5476,8 +5472,6 @@ struct pw_protocol_pulse *pw_protocol_pulse_new(struct pw_context *context,
|
|||
const char *str;
|
||||
int res = 0;
|
||||
|
||||
debug_messages = pw_log_topic_enabled(SPA_LOG_LEVEL_INFO, pulse_conn);
|
||||
|
||||
impl = calloc(1, sizeof(*impl) + user_data_size);
|
||||
if (impl == NULL)
|
||||
goto error_free_props;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue