Read the log file as binary in zuul_console

It gets decoded as utf-8 on the other side of the socket, and it's being
written to the file as utf-8 - so there's not reason to read it in to a
string before sending it over the wire.

Change-Id: Iad3d33108835fad3ceae0eec38985659449a6452
This commit is contained in:
Monty Taylor 2017-06-30 15:27:00 -05:00
parent 1a3bb28e47
commit 8dce6aacaa
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ def daemonize():
class Console(object):
def __init__(self, path):
self.path = path
self.file = open(path)
self.file = open(path, 'rb')
self.stat = os.stat(path)
self.size = self.stat.st_size