Changed SGQuery logging to use the new SGHTTPLogging