Skip to content

Commit

Permalink
[negwm] remove systemd stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
neg-serg committed Feb 12, 2024
1 parent ad6d8e6 commit 8d7012d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions negwm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@
instances via pid-log.
Usage:
./main.py [-diqv] [--systemd]
./main.py [-diqv]
./main.py -d, --debug
./main.py -i, --info
./main.py -q, --quiet
./main.py -v, --verbose
./main.py --systemd
Options:
-d, --debug Enable debug mode with debug logging
-i, --info Info logging
-q, --quiet Quiet, no logging
-v, --verbose More verbose logging
--systemd Use systemd for logging
Created by :: Neg
email :: <serg.zorg@gmail.com>
Expand Down Expand Up @@ -104,12 +102,6 @@ def main():
atexit.register(NegWM.cleanup)
arguments=docopt(str(__doc__), version=__version__)
log=logging.getLogger()
if arguments['--systemd']:
try:
from systemd import journal
log.addHandler(journal.JournaldLogHandler())
except:
log.error('Cannot setup systemd log')
loglevel=logging.INFO
if arguments['--debug'] or arguments['--verbose']:
loglevel=logging.DEBUG
Expand Down

0 comments on commit 8d7012d

Please sign in to comment.