From 5f2f06c269ba7c5dae8684ff3f8721983879ab6a Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Fri, 26 Oct 2018 12:41:10 -0400 Subject: [PATCH] fix loggly --- lbrynet/core/log_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/core/log_support.py b/lbrynet/core/log_support.py index ec8d9b4b4..c0c497a6f 100644 --- a/lbrynet/core/log_support.py +++ b/lbrynet/core/log_support.py @@ -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):