Fix generate_signature_hash error and handle in check_signature.

This logging line appeared inconsistent with other logging and breaks negative tests.