add OS and Python version logging

This commit is contained in:
sfaulds 2016-11-09 10:16:28 +11:00
parent a8452d2e81
commit 774700bdc8

View file

@ -7,6 +7,7 @@ import sys
import time import time
import _strptime # Workaround for threads using datetime: _striptime is locked import _strptime # Workaround for threads using datetime: _striptime is locked
from datetime import datetime from datetime import datetime
import platform
import xbmc import xbmc
@ -164,6 +165,8 @@ class Service(object):
ga = GoogleAnalytics() ga = GoogleAnalytics()
ga.sendEventData("Application", "Startup", serverId) ga.sendEventData("Application", "Startup", serverId)
ga.sendEventData("Version", "OS", platform.platform())
ga.sendEventData("Version", "Python", platform.python_version())
# Start up events # Start up events
self.warn_auth = True self.warn_auth = True