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

Bugfix logging on AppImage #1208

Merged
merged 2 commits into from
May 6, 2023
Merged

Bugfix logging on AppImage #1208

merged 2 commits into from
May 6, 2023

Conversation

Finii
Copy link
Collaborator

@Finii Finii commented May 6, 2023

Description

The font-patcher always logs the debug messages in a file.
That fails when fontforge is an AppImage (and maybe when we are a docker image?)

This PR drops that feature. Logging to file has to be explicitly requested with a parameter to the --debug option.

Introduce parameter to --debug option.
0 = no debug output
1 = log to file only (previously always selected)
2 = log to stdout only
3 = log to file and stdout (previous default for --debug)

Just specifying --default equals now --debug 2.
The gotta-patch-em runs now with --debug 1.

Requirements / Checklist

What does this Pull Request (PR) do?

How should this be manually tested?

Any background context you can provide?

What are the relevant tickets (if any)?

Reported on Gitter by @loveFluffy - Thank you for the report!

Screenshots (if appropriate or helpful)

Finii added 2 commits May 6, 2023 10:29
[why]
When font-patcher is on a read only filesystem the pacher can not run.
This is for example the case when fontforge is a AppImage.

[how]
Try if the logfile can be written, and if not disable logging into a
file.

Reported-by: Bliss X. Xu <blissLove8@gmail.com>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
Maybe it is not a good idea to always create the log file, as most
people will never look into it. The main reason for it was the
gotta-patch-em script so that one can check after lots of runs what the
details were.

[how]
Introduce parameter to --debug option.
0 = no debug output
1 = log to file only (previously always selected)
2 = log to stdout only
3 = log to file and stdout (previous default for --debug)

Just specifying --default equals now --debug 2.
The gotta-patch-em runs now with --debug 1.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
@Finii Finii added this to the v3.0.1 milestone May 6, 2023
@Finii Finii merged commit 5719402 into master May 6, 2023
@Finii Finii deleted the bugfix/logging-on-appimage branch May 6, 2023 09:17
LNKLEO pushed a commit to LNKLEO/Nerd that referenced this pull request Nov 24, 2023
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.

1 participant