Skip to content

Commit 0220c55

Browse files
author
Matthew Fisher
committed
fix(client): use sys.stdout.write for logs
The logs already print out newline characters, so using print() adds an extra empty line to the log output. Using sys.stdout.write() removes this empty line.
1 parent b71c0b3 commit 0220c55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/deis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ def apps_logs(self, args):
566566
response = self._dispatch('post',
567567
"/api/apps/{}/logs".format(app))
568568
if response.status_code == requests.codes.ok: # @UndefinedVariable
569-
print(response.json())
569+
sys.stdout.write(response.json())
570570
else:
571571
raise ResponseError(response)
572572

0 commit comments

Comments
 (0)