fix loggly
This commit is contained in:
parent
e1dcdcf4db
commit
5f2f06c269
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class HTTPSHandler(logging.Handler):
|
|||
@defer.inlineCallbacks
|
||||
def _emit(self, record):
|
||||
payload = self.format(record)
|
||||
response = yield treq.post(self.url, data=payload, cookies=self.cookies)
|
||||
response = yield treq.post(self.url, data=payload.encode(), cookies=self.cookies)
|
||||
self.cookies.update(response.cookies())
|
||||
|
||||
def emit(self, record):
|
||||
|
|
Loading…
Reference in a new issue