fix loggly

This commit is contained in:
Jack Robison 2018-10-26 12:41:10 -04:00
parent e1dcdcf4db
commit 5f2f06c269
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -30,7 +30,7 @@ class HTTPSHandler(logging.Handler):
@defer.inlineCallbacks @defer.inlineCallbacks
def _emit(self, record): def _emit(self, record):
payload = self.format(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()) self.cookies.update(response.cookies())
def emit(self, record): def emit(self, record):