Opened 16 months ago
Closed 12 months ago
python bindings do not support the systemd-journal logging option (--systemd-journal)
In what probably should have been a (co-)requirement before committing the patches from #12663 the python bindings were never updated to support journal logging.
I will note that one may need to make the import of the systemd.journal library inside a try/except to handle non-Linux OS's (I have not checked if there is a dummy implementation on FreeBSD or MacOS or Windows, but would not be surprised if they do not exist there).
Change History (6)
Changed 15 months ago by rcrdnalor
Changed 15 months ago by rcrdnalor
Milestone: |
needs_triage →
31.0
|
Owner: |
changed from Raymond Wagner to Bill Meek
|
Status: |
new →
assigned
|
Status: |
assigned →
accepted
|
Resolution: |
→ fixed
|
Status: |
accepted →
closed
|
Python Bindings: Add logging to 'systemd-journal'.
This patch adds the option to log to 'systemd-journal' from MythTV's Python Bindings. ('--systemd-journal'). If the python module 'systemd.journal' is not available, and '--systemd-journal' is selected, the user will be informed by an exception ('MythError?').
Caution: Since the python package "python-systemd" may be not installed by default or is not available on the OS-platform (e.g.: Windows), this commit adds a 'weak' run-time dependency ("python-systemd")!
Additionally, it follows the generic conventions used by 'MythCommandLineParser?':
Attached a patch against pull request 182 and a file showing its usage.
Please decide.