Add some logging to shell plugin