There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

query_start

When a query is started, store the query

query_end

After a query was executed, update the query log