mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-23 00:12:45 +00:00
use an exception class to surface exceptions that we dont want to log to the metrics logging system
This commit is contained in:
parent
84165e6e64
commit
aef40c4e8a
7 changed files with 35 additions and 7 deletions
|
@ -22,6 +22,7 @@ import loghandler
|
|||
from service_entry import Service
|
||||
from utils import settings
|
||||
from ga_client import GoogleAnalytics
|
||||
import internal_exceptions
|
||||
|
||||
#################################################################################################
|
||||
|
||||
|
@ -41,6 +42,10 @@ if __name__ == "__main__":
|
|||
raise RuntimeError("Abort event while waiting to start Emby for kodi")
|
||||
# Start the service
|
||||
service.service_entry_point()
|
||||
except internal_exceptions.ExceptionWrapper as error:
|
||||
log.exception(error)
|
||||
log.info("Forcing shutdown")
|
||||
service.shutdown()
|
||||
except Exception as error:
|
||||
ga = GoogleAnalytics()
|
||||
errStrings = ga.formatException()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue