From 774700bdc867989fb22704f7dc137927cbf4cfdd Mon Sep 17 00:00:00 2001 From: sfaulds Date: Wed, 9 Nov 2016 10:16:28 +1100 Subject: [PATCH] add OS and Python version logging --- resources/lib/service_entry.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/lib/service_entry.py b/resources/lib/service_entry.py index 273dce45..87cd8197 100644 --- a/resources/lib/service_entry.py +++ b/resources/lib/service_entry.py @@ -7,6 +7,7 @@ import sys import time import _strptime # Workaround for threads using datetime: _striptime is locked from datetime import datetime +import platform import xbmc @@ -164,6 +165,8 @@ class Service(object): ga = GoogleAnalytics() ga.sendEventData("Application", "Startup", serverId) + ga.sendEventData("Version", "OS", platform.platform()) + ga.sendEventData("Version", "Python", platform.python_version()) # Start up events self.warn_auth = True