move logging before plugin url check