Write URI to error log for testing