Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options/path: only log mp_get_user_path if the path expands #15880

Merged
merged 1 commit into from
Feb 16, 2025

Conversation

Dudemanguy
Copy link
Member

Having path -> path in the log is kind of useless. If someone happens to call this on memory://, it will also flood the log with garbage. Only print it at a debug level if the path actually changes/get expanded. Otherwise set it at trace.

options/path.c Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Feb 16, 2025

Download the artifacts for this pull request:

Windows
macOS

@Dudemanguy Dudemanguy changed the title options/path: log mp_get_user_path as trace if the path does not expand options/path: only log mp_get_user_path if the path expands Feb 16, 2025
Having path -> path in the log is kind of useless. If someone happens to
call this on memory://, it will also flood the log with garbage. Only
log it if the path actually gets expanded.
@sfan5 sfan5 added this pull request to the merge queue Feb 16, 2025
Merged via the queue into mpv-player:master with commit 23e1fb4 Feb 16, 2025
26 checks passed
@Dudemanguy Dudemanguy deleted the path-spam branch February 16, 2025 15:34
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