protocol-native: print more volume change debug messages to easy tracking down of feedback loops

This commit is contained in:
Lennart Poettering 2009-08-27 00:05:54 +02:00
parent cab48d48d1
commit c372b52a77
3 changed files with 25 additions and 7 deletions

View file

@ -934,6 +934,10 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
data.data = &entry;
data.size = sizeof(entry);
pa_log_debug("Client %s changes entry %s.",
pa_strnull(pa_proplist_gets(pa_native_connection_get_client(c)->proplist, PA_PROP_APPLICATION_PROCESS_BINARY)),
name);
if (pa_database_set(u->database, &key, &data, mode == PA_UPDATE_REPLACE) == 0)
if (apply_immediately)
apply_entry(u, name, &entry);