Browse Source

PEP8

opensearch
Oren Mazor 7 years ago
parent
commit
7b2040706f
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      logzio/handler.py
  2. +1
    -0
      logzio/sender.py

+ 1
- 1
logzio/handler.py View File

@ -9,6 +9,7 @@ from .sender import LogzioSender
class LogzioHandler(logging.Handler): class LogzioHandler(logging.Handler):
def __init__(self, token, logzio_type="python", logs_drain_timeout=3, def __init__(self, token, logzio_type="python", logs_drain_timeout=3,
url="https://listener.logz.io:8071", debug=False): url="https://listener.logz.io:8071", debug=False):
@ -87,4 +88,3 @@ class LogzioHandler(logging.Handler):
def emit(self, record): def emit(self, record):
self.logzio_sender.append(self.format_message(record)) self.logzio_sender.append(self.format_message(record))

+ 1
- 0
logzio/sender.py View File

@ -22,6 +22,7 @@ def backup_logs(logs):
class LogzioSender: class LogzioSender:
def __init__(self, token, url="https://listener.logz.io:8071", logs_drain_timeout=5, debug=False): def __init__(self, token, url="https://listener.logz.io:8071", logs_drain_timeout=5, debug=False):
self.token = token self.token = token
self.url = "{0}/?token={1}".format(url, token) self.url = "{0}/?token={1}".format(url, token)


Loading…
Cancel
Save