log_query now logs the originating country