Adds test code for logging authorize errors. This is just for testing purposes.