This commit is contained in:
brent s
2019-05-31 16:50:43 -04:00
parent a89a6ec94b
commit 7eee1c4658
3 changed files with 36 additions and 3 deletions

View File

@@ -42,12 +42,12 @@ class log(object):
except Exception as e:
# Make this non-fatal since we also log to journal for systemd?
raise e
self.systemd()
self.chkSystemd()
self.journald()
self.Logger.setLevel(self.loglvls[self.loglvl])
self.log_handlers()
def systemd(self):
def chkSystemd(self):
# Add journald support if we're on systemd.
# We probably are since we're most likely on Arch, but we don't want to
# make assumptions.