File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 99from .uploader import Uploader
1010from .frame import create_frame
1111
12- DEFAULT_HOST = 'https:// in.logs.betterstack.com'
12+ DEFAULT_HOST = 'in.logs.betterstack.com'
1313DEFAULT_BUFFER_CAPACITY = 1000
1414DEFAULT_FLUSH_INTERVAL = 1
1515DEFAULT_CHECK_INTERVAL = 0.1
@@ -32,7 +32,10 @@ def __init__(self,
3232 level = logging .NOTSET ):
3333 super (LogtailHandler , self ).__init__ (level = level )
3434 self .source_token = source_token
35- self .host = host
35+ if host .startswith ('https://' ) or host .startswith ('http://' ):
36+ self .host = host
37+ else :
38+ self .host = "https://" + host
3639 self .context = context
3740 self .pipe = queue .Queue (maxsize = buffer_capacity )
3841 self .uploader = Uploader (self .source_token , self .host )
Original file line number Diff line number Diff line change 33from setuptools import setup
44
55
6- VERSION = '0.3.2 '
6+ VERSION = '0.3.3 '
77ROOT_DIR = os .path .dirname (__file__ )
88
99REQUIREMENTS = [
You can’t perform that action at this time.
0 commit comments