Flush Python logs to display them in non-interactive sessions (#221)

This commit is contained in:
Robin-Manuel Thiel 2020-05-28 20:17:18 +02:00 committed by GitHub
parent ed92d6595f
commit 2f6fedb164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -18,6 +18,6 @@ while True:
try:
response = requests.post(dapr_url, json=message, timeout=5)
except Exception as e:
print(e)
print(e, flush=True)
time.sleep(1)

View File

@ -18,6 +18,6 @@ while True:
try:
response = requests.post(dapr_url, json=message, timeout=5)
except Exception as e:
print(e)
print(e, flush=True)
time.sleep(1)

View File

@ -20,6 +20,6 @@ while True:
print(response, flush=True)
except Exception as e:
print(e)
print(e, flush=True)
time.sleep(1)