Improve logging in plugin_manager