Skip to content

command: log menu-data changes at trace level instead of verbose#17498

Open
guidocella wants to merge 1 commit intompv-player:masterfrom
guidocella:debug-menu-data
Open

command: log menu-data changes at trace level instead of verbose#17498
guidocella wants to merge 1 commit intompv-player:masterfrom
guidocella:debug-menu-data

Conversation

@guidocella
Copy link
Contributor

Avoid spamming the log.

{
struct command_ctx *cmd = ctx->command_ctx;
int r = m_property_do(ctx->log, cmd->properties, name, action, val, ctx);
int level = strcmp(name, "menu-data") ? MSGL_V : MSGL_TRACE;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of special casing one property it should be a flag that can be applied to similar properties like user-data.

Copy link
Member

@kasper93 kasper93 Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, we might want revamp how props are printed. Could do "setting property name" on verbose and "setting property name: value" or higher level.

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.

4 participants