Update proxy.py

replace query with qname in logging