Add more logging

This commit is contained in:
JonnyWong16 2020-04-25 12:39:57 -07:00
parent 773ee8664c
commit 2efd81dc6a
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 4 additions and 0 deletions

View file

@ -64,12 +64,14 @@ def set_startup():
logger.error("Failed to create MacOS system startup plist file: %s", e)
return False
logger.info("Added Tautulli to MacOS system startup.")
return True
else:
try:
if os.path.isfile(plist_file_path):
os.remove(plist_file_path)
logger.info("Removed Tautulli from MacOS system startup.")
return True
except OSError as e:
logger.error("Failed to delete MacOS system startup plist file: %s", e)