File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
examples/peerconnection/serverless Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ def main():
2323 cmdinfer .main (app .stdout , app .stdin )
2424 app .wait ()
2525 except :
26+ app .terminate ()
27+ app .wait ()
28+ error_message = traceback .format_exc ()
29+ error_message = "\n {}" .format (error_message )
30+ sys .stderr .write (error_message )
2631 if len (sys .argv [1 :]) == 0 :
2732 return
2833 config_file = sys .argv [1 ]
@@ -31,13 +36,8 @@ def main():
3136 return
3237 if "enabled" not in config_file ["logging" ] or not config_file ["logging" ]["enabled" ]:
3338 return
34- app .terminate ()
35- app .wait ()
3639 with open (config_file ["logging" ]["log_output_path" ], "a" ) as log_file :
37- error_message = traceback .format_exc ()
38- error_message = "\n {}" .format (error_message )
3940 log_file .write (error_message )
40- sys .stderr .write (error_message )
4141
4242
4343if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments