Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions logtail/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .uploader import Uploader
from .frame import create_frame

DEFAULT_HOST = 'https://in.logs.betterstack.com'
DEFAULT_HOST = 'in.logs.betterstack.com'
DEFAULT_BUFFER_CAPACITY = 1000
DEFAULT_FLUSH_INTERVAL = 1
DEFAULT_CHECK_INTERVAL = 0.1
Expand All @@ -32,7 +32,10 @@ def __init__(self,
level=logging.NOTSET):
super(LogtailHandler, self).__init__(level=level)
self.source_token = source_token
self.host = host
if host.startswith('https://') or host.startswith('http://'):
self.host = host
else:
self.host = "https://" + host
self.context = context
self.pipe = queue.Queue(maxsize=buffer_capacity)
self.uploader = Uploader(self.source_token, self.host)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup


VERSION = '0.3.2'
VERSION = '0.3.3'
ROOT_DIR = os.path.dirname(__file__)

REQUIREMENTS = [
Expand Down
Loading