mirror of https://github.com/dapr/quickstarts.git
Flush Python logs to display them in non-interactive sessions (#221)
This commit is contained in:
parent
ed92d6595f
commit
2f6fedb164
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -20,6 +20,6 @@ while True:
|
|||
print(response, flush=True)
|
||||
|
||||
except Exception as e:
|
||||
print(e)
|
||||
print(e, flush=True)
|
||||
|
||||
time.sleep(1)
|
||||
|
|
Loading…
Reference in New Issue