Cleanup of GET query, for logging