added logging

This is useful if you know when your system become broken and you want to know which channel was in use before so you can do git bisect more easily