2121
2222import time
2323import random
24- import logging
2524from snowplow_tracker import payload , _version , subject
26- from contracts import contract , new_contract , disable_all
27-
25+ from contracts import contract , new_contract
2826
2927
3028"""
3129Constants & config
3230"""
3331
34- logger = logging .getLogger ()
35- logger .setLevel (logging .DEBUG )
36-
3732VERSION = "py-%s" % _version .__version__
3833DEFAULT_ENCODE_BASE64 = True
3934DEFAULT_VENDOR = "com.snowplowanalytics"
@@ -57,8 +52,7 @@ class Tracker:
5752
5853 @contract
5954 def __init__ (self , out_queue , _subject = None ,
60- namespace = None , app_id = None , context_vendor = None , encode_base64 = DEFAULT_ENCODE_BASE64 ,
61- log = True ):
55+ namespace = None , app_id = None , context_vendor = None , encode_base64 = DEFAULT_ENCODE_BASE64 ):
6256 """
6357 :param out_queue: Consumer to which events will be sent
6458 :type out_queue: consumer
@@ -72,12 +66,7 @@ def __init__(self, out_queue, _subject=None,
7266 :type context_vendor: string_or_none
7367 :param encode_base64: Whether JSONs in the payload should be base-64 encoded
7468 :type encode_base64: bool
75- :param log: Whether to enable Python logging
76- :type log: bool
7769 """
78- if not log :
79- logger .setLevel (logging .CRITICAL )
80-
8170 if _subject is None :
8271 _subject = subject .Subject ()
8372
0 commit comments