Add logging for colliding resources

This helps resolving problems with resources.