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

Do not print a full source path in RNP_LOG. #2146

Open
ni4 opened this issue Nov 12, 2023 · 0 comments · May be fixed by #2297
Open

Do not print a full source path in RNP_LOG. #2146

ni4 opened this issue Nov 12, 2023 · 0 comments · May be fixed by #2297
Assignees

Comments

@ni4
Copy link
Contributor

ni4 commented Nov 12, 2023

Description

Currently RNP_LOG prints the whole path to the source file, i.e. in my case:
[process_pgp_source() /Users/aaaa/bbbbb/rnp/src/librepgp/stream-parse.cpp:2983]
However it would be better to hide prefix, i.e. print just the following:
[process_pgp_source() /librepgp/stream-parse.cpp:2983]

The best way I see right now is to use some build-time define with prefix path length, like it described here: https://stackoverflow.com/a/40947954/452752

@desvxx desvxx self-assigned this Dec 5, 2024
@desvxx desvxx linked a pull request Dec 5, 2024 that will close this issue
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 a pull request may close this issue.

2 participants