Add logging calls in ws_object implementation

This PR adds a few calls to ws_log() in the object type
implementation.