Log sanity check failures

This will log the values that triggered a sanity check failure to help us find what's causing them.