Added logging to ComponentTreeController.