Permalink
Browse files

Removed error reporter

  • Loading branch information...
fuzeman committed Mar 4, 2018
1 parent bb6836f commit 70ce6875a7a0f6b8eb989d6ecdfd9e68beb0f029
Showing with 1 addition and 11,450 deletions.
  1. +1 −10 Tools/refresh_libraries.py
  2. +0 −44 Trakttv.bundle/Contents/Libraries/Shared/plugin/core/libraries/manager.py
  3. +0 −4 Trakttv.bundle/Contents/Libraries/Shared/plugin/core/libraries/tests/openssl_.py
  4. +0 −433 Trakttv.bundle/Contents/Libraries/Shared/plugin/core/logger/handlers/error_reporter.py
  5. +0 −46 Trakttv.bundle/Contents/Libraries/Shared/plugin/core/logger/main.py
  6. 0 Trakttv.bundle/Contents/Libraries/Shared/plugin/raven/__init__.py
  7. +0 −57 Trakttv.bundle/Contents/Libraries/Shared/plugin/raven/processors.py
  8. +0 −56 Trakttv.bundle/Contents/Libraries/Shared/raven/__init__.py
  9. +0 −225 Trakttv.bundle/Contents/Libraries/Shared/raven/_compat.py
  10. +0 −907 Trakttv.bundle/Contents/Libraries/Shared/raven/base.py
  11. +0 −367 Trakttv.bundle/Contents/Libraries/Shared/raven/breadcrumbs.py
  12. +0 −54 Trakttv.bundle/Contents/Libraries/Shared/raven/conf/__init__.py
  13. +0 −51 Trakttv.bundle/Contents/Libraries/Shared/raven/conf/defaults.py
  14. +0 −125 Trakttv.bundle/Contents/Libraries/Shared/raven/conf/remote.py
  15. +0 −141 Trakttv.bundle/Contents/Libraries/Shared/raven/context.py
  16. +0 −8 Trakttv.bundle/Contents/Libraries/Shared/raven/contrib/__init__.py
  17. +0 −29 Trakttv.bundle/Contents/Libraries/Shared/raven/contrib/async.py
  18. +0 −319 Trakttv.bundle/Contents/Libraries/Shared/raven/contrib/flask.py
  19. +0 −16 Trakttv.bundle/Contents/Libraries/Shared/raven/contrib/paste.py
  20. +0 −5,307 Trakttv.bundle/Contents/Libraries/Shared/raven/data/cacert.pem
  21. +0 −171 Trakttv.bundle/Contents/Libraries/Shared/raven/events.py
  22. +0 −30 Trakttv.bundle/Contents/Libraries/Shared/raven/exceptions.py
  23. +0 −8 Trakttv.bundle/Contents/Libraries/Shared/raven/handlers/__init__.py
  24. +0 −101 Trakttv.bundle/Contents/Libraries/Shared/raven/handlers/logbook.py
  25. +0 −180 Trakttv.bundle/Contents/Libraries/Shared/raven/handlers/logging.py
  26. +0 −116 Trakttv.bundle/Contents/Libraries/Shared/raven/middleware.py
  27. +0 −150 Trakttv.bundle/Contents/Libraries/Shared/raven/processors.py
  28. +0 −8 Trakttv.bundle/Contents/Libraries/Shared/raven/scripts/__init__.py
  29. +0 −121 Trakttv.bundle/Contents/Libraries/Shared/raven/scripts/runner.py
  30. +0 −21 Trakttv.bundle/Contents/Libraries/Shared/raven/transport/__init__.py
  31. +0 −50 Trakttv.bundle/Contents/Libraries/Shared/raven/transport/base.py
  32. +0 −52 Trakttv.bundle/Contents/Libraries/Shared/raven/transport/eventlet.py
  33. +0 −22 Trakttv.bundle/Contents/Libraries/Shared/raven/transport/exceptions.py
  34. +0 −53 Trakttv.bundle/Contents/Libraries/Shared/raven/transport/gevent.py
  35. +0 −62 Trakttv.bundle/Contents/Libraries/Shared/raven/transport/http.py
  36. +0 −83 Trakttv.bundle/Contents/Libraries/Shared/raven/transport/registry.py
  37. +0 −54 Trakttv.bundle/Contents/Libraries/Shared/raven/transport/requests.py
  38. +0 −182 Trakttv.bundle/Contents/Libraries/Shared/raven/transport/threaded.py
  39. +0 −34 Trakttv.bundle/Contents/Libraries/Shared/raven/transport/threaded_requests.py
  40. +0 −60 Trakttv.bundle/Contents/Libraries/Shared/raven/transport/tornado.py
  41. +0 −75 Trakttv.bundle/Contents/Libraries/Shared/raven/transport/twisted.py
  42. +0 −214 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/__init__.py
  43. +0 −62 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/compat.py
  44. +0 −61 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/conf.py
  45. +0 −97 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/encoding.py
  46. +0 −66 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/http.py
  47. +0 −16 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/imports.py
  48. +0 −113 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/json.py
  49. +0 −11 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/serializer/__init__.py
  50. +0 −189 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/serializer/base.py
  51. +0 −94 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/serializer/manager.py
  52. +0 −104 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/ssl_match_hostname.py
  53. +0 −312 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/stacks.py
  54. +0 −33 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/testutils.py
  55. +0 −51 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/transaction.py
  56. +0 −18 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/urlparse.py
  57. +0 −95 Trakttv.bundle/Contents/Libraries/Shared/raven/utils/wsgi.py
  58. +0 −81 Trakttv.bundle/Contents/Libraries/Shared/raven/versioning.py
  59. +0 −1 Trakttv.bundle/Contents/Libraries/Shared/requirements.txt
@@ -14,16 +14,7 @@
os.path.join('shove', 'tests'),
os.path.join('tzlocal', 'test_data'),
os.path.join('websocket', 'tests'),
'tests',
os.path.join('raven', 'contrib', 'bottle'),
os.path.join('raven', 'contrib', 'celery'),
os.path.join('raven', 'contrib', 'django'),
os.path.join('raven', 'contrib', 'pylons'),
os.path.join('raven', 'contrib', 'tornado'),
os.path.join('raven', 'contrib', 'webpy'),
os.path.join('raven', 'contrib', 'zerorpc'),
os.path.join('raven', 'contrib', 'zope')
'tests'
]
DELETE_FILES = [
@@ -6,7 +6,6 @@
from plugin.core.libraries.constants import CONTENTS_PATH, NATIVE_DIRECTORIES, UNICODE_MAP
from plugin.core.libraries.helpers import PathHelper, StorageHelper, SystemHelper
from plugin.core.libraries.tests import LIBRARY_TESTS
from plugin.core.logger.handlers.error_reporter import ErrorReporter
import json
import logging
@@ -119,10 +118,6 @@ def test():
# Include versions in error reports
versions = metadata.get('versions') or {}
ErrorReporter.set_tags(dict([
('%s.version' % key, value)
for key, value in versions.items()
]))
@classmethod
def reset(cls):
@@ -168,20 +163,6 @@ def _read_distribution_metadata(cls):
if not distribution or not distribution.get('name'):
return
# Set distribution name tag
ErrorReporter.set_tags({
'distribution.name': distribution['name']
})
# Set distribution release tags
release = distribution.get('release')
if release and release.get('version') and release.get('branch'):
ErrorReporter.set_tags({
'distribution.version': release['version'],
'distribution.branch': release['branch']
})
return distribution
@classmethod
@@ -197,29 +178,17 @@ def _libraries_path(cls, cache=False):
if libraries_path and os.path.exists(libraries_path):
log.info('Using libraries at %r', StorageHelper.to_relative_path(libraries_path))
ErrorReporter.set_tags({
'libraries.source': 'custom'
})
return libraries_path
# Use system libraries (if bundled libraries have been disabled in "advanced.ini")
if not Configuration.advanced['libraries'].get_boolean('bundled', True):
log.info('Bundled libraries have been disabled, using system libraries')
ErrorReporter.set_tags({
'libraries.source': 'system'
})
return None
# Cache libraries (if enabled)
if cache:
ErrorReporter.set_tags({
'libraries.source': 'cache'
})
return cls._cache_libraries()
ErrorReporter.set_tags({
'libraries.source': 'bundle'
})
return Environment.path.libraries
@classmethod
@@ -329,13 +298,6 @@ def _insert_paths_unix(libraries_path, system, architecture):
if page_size:
PathHelper.insert(libraries_path, system, architecture, '%s_%s' % (cpu_type, page_size), ucs)
# Include attributes in error reports
ErrorReporter.set_tags({
'cpu.type': cpu_type,
'memory.page_size': page_size,
'python.ucs': ucs
})
@staticmethod
def _insert_paths_windows(libraries_path, system, architecture):
vcr = SystemHelper.vcr_version() or 'vc12' # Assume "vc12" if call fails
@@ -349,9 +311,3 @@ def _insert_paths_windows(libraries_path, system, architecture):
# UCS libraries
if ucs:
PathHelper.insert(libraries_path, system, architecture, vcr, ucs)
# Include attributes in error reports
ErrorReporter.set_tags({
'python.ucs': ucs,
'vcr.version': vcr
})
@@ -103,10 +103,6 @@ def on_success(cls, metadata):
else:
log.debug('Using standard SSL library (ssl)')
# Enable secure error reporting
from plugin.core.logger.handlers.error_reporter import ErrorReporter
ErrorReporter.set_protocol('threaded+requests+https')
#
# Helpers
#
Oops, something went wrong.

0 comments on commit 70ce687

Please sign in to comment.