Add logging for colliding resources

This helps resolving problems with resources.
Merge pull request #853 from jyrkiput/master

Add logging for colliding resources