sugarbot's aim is to provide testing and automation facilities for the OLPC Project's Sugar GUI. The project must first identify and evaluate possible implementation options, and then implement the best choice. Although it has a Sugar focus, sugarbot should be easily extensible to other Python-based GUI's.

Tuesday, August 5, 2008

Cleaning up logging functionality

Cleaning up a bit of the logging functionality on the RPC-server side of stuff. Most of it has to do with better correlation of individual clients with given status messages. A small side-effect of this is that pinpointing errors should be easier.


Old Output:

sbRpcServer : INFO     Listening on port 54321
sbRpcServer : INFO Kill: True Restart: True
sbRpcServer : INFO Added script sbpython_script.py [Activity Calculate]
sbRpcServer : INFO Serving script sbpython_script.py to client Zach
sbRpcServer : ERROR sugarbot client disconnected prematurely.
sbRpcServer : ERROR Reason: Execution failed: Traceback (most recent call last):
File "/home/zach/Activities/sugarbot.activity/sbexecutionengine.py", line 92, in executePy
sugarbot_main(self.widgets)
File "[string]", line 7, in sugarbot_main
AssertionError


New Output:

sbRpcServer : INFO     Listening on port 54321
sbRpcServer : INFO Kill: True Restart: True
sbRpcServer : INFO Added script sbpython_script.py [Activity Calculate]
Zach : INFO Starting sbpython_script.py
Zach : INFO Success (sbpython_script.py)
Zach : INFO Disconnected [1\1\1]
Zach : INFO Starting script sbpython_script.py
Zach : ERROR Execution failed:
Traceback (most recent call last):
File "/home/zach/Activities/sugarbot.activity/sbexecutionengine.py", line 92, in executePy
sugarbot_main(self.widgets)
File "Sugarbot Script: 'sbpython_script.py'", line 7, in sugarbot_main
AssertionError

Zach : INFO Disconnected [0\1\1]

No comments: