fixes #6156 need logging the osgi activity

Fixed the issue and pushed the code for review, please check it.