idlesign / systemd-logging

Simplifies logging for systemd
https://github.com/idlesign/systemd-logging
BSD 3-Clause "New" or "Revised" License
26 stars 1 forks source link

Need fix for drop if not found libsystemd.so #5

Closed romkazor closed 3 years ago

romkazor commented 3 years ago

If not found lybsystemd.so raise: ctyped.exceptions.CtypedException: Unable to find library: libsystemd.so Simple fix:

toolbox.py

from ctyped.exceptions import CtypedException

try:
    from .backend_ctyped import send
except CtypedException:
    pass
idlesign commented 3 years ago

Could you elaborate on why do you need this? Since if you have no systemd (and its' library) then systemd-logging is basically useless.

romkazor commented 3 years ago

I used systemd-logging in my package, but I don't know which os system the user of my package will be using.

idlesign commented 3 years ago

I see. Will try to mitigate it on weekends.

idlesign commented 3 years ago

Implemented and available in master.