pulse-server: improve message debug

Add prefix to messages to mark sent and received messages.
Send mem debug to log instead of stderr.
Log the complete message and debug the command.
This commit is contained in:
Wim Taymans 2024-01-11 12:05:29 +01:00
parent d0a2e6316b
commit 3baba76c77
4 changed files with 39 additions and 27 deletions

View file

@ -71,7 +71,7 @@ static int handle_packet(struct client *client, struct message *msg)
if (pw_log_topic_custom_enabled(SPA_LOG_LEVEL_INFO, pulse_conn)) {
pw_log_debug("client %p: command:%s", client, commands[command].name);
message_dump(SPA_LOG_LEVEL_INFO, msg);
message_dump(SPA_LOG_LEVEL_INFO, "<<", msg);
}
const struct command *cmd = &commands[command];