From 4aac3bf5aa2b88a37cd8dc57b80cb80c7cd5ed49 Mon Sep 17 00:00:00 2001 From: Justin Van Koten Date: Mon, 9 Jun 2014 22:36:40 -0700 Subject: [PATCH 1/2] Update handlers.py --- hoover/handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hoover/handlers.py b/hoover/handlers.py index 20b8b47..9e3fef9 100644 --- a/hoover/handlers.py +++ b/hoover/handlers.py @@ -12,7 +12,7 @@ class LogglyHttpHandler(logging.Handler): def __init__(self, session=None, token='', inputname='', input=None, - announce=False, json_class=None, secure=True, proxy=None): + announce=False, json_class=None, secure=True, proxy=None, tag=None): logging.Handler.__init__(self) if inputname: # TODO: raise something appropriate if session is None @@ -28,7 +28,7 @@ def __init__(self, session=None, token='', inputname='', input=None, self.token = token protocol = secure and 'https' or 'http' proxy = proxy or session.proxy - self.endpoint = "%s://%s/inputs/%s" % (protocol, proxy, token) + self.endpoint = "%s://%s/inputs/%s/tag/%s" % (protocol, proxy, token, tag) self.json_class = json_class # TODO: verify we can write to the input if announce: From 1e781f60878836bcca1549311eb20abaff91d9df Mon Sep 17 00:00:00 2001 From: Justin Van Koten Date: Tue, 10 Jun 2014 08:44:54 -0700 Subject: [PATCH 2/2] Update handlers.py --- hoover/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hoover/handlers.py b/hoover/handlers.py index 9e3fef9..43acc60 100644 --- a/hoover/handlers.py +++ b/hoover/handlers.py @@ -12,7 +12,7 @@ class LogglyHttpHandler(logging.Handler): def __init__(self, session=None, token='', inputname='', input=None, - announce=False, json_class=None, secure=True, proxy=None, tag=None): + announce=False, json_class=None, secure=True, proxy=None, tag=''): logging.Handler.__init__(self) if inputname: # TODO: raise something appropriate if session is None