proper search through the API log for errors

This commit is contained in:
Jude Nelson
2017-02-06 15:17:40 -05:00
parent f4f2f50452
commit ab504cb8cb

View File

@@ -319,8 +319,12 @@ def check( state_engine ):
with open(api_log_path, "r") as f:
api_log = f.read()
if "Traceback (most recent call last)" in api_log_path:
if "Traceback (most recent call last)" in api_log:
print "exception thrown by client"
return False
if "Server did not save" in api_log:
print 'server did not save'
return False
return True