Log query part of url in debug log message
Fix up exception and permission denied page information
Log more useful information when a PermissionException is encountered.