Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-27928

Log exact URL instead of base URL for HTTP requests

    XMLWordPrintable

    Details

      Description

      When launching Nuxeoctl at log level "debug", the URLs of HTTP requests are logged:

      nuxeo-server-10.10-tomcat $ bin/nuxeoctl -d org.nuxeo -- mp-update
      ...
      [org.nuxeo.connect.connector.AbstractConnectConnector] Cache empty or expired for studio_server-10.10. Sending request to https://nos-dev02-connect.beta.nuxeocloud.com/nuxeo/site/connect-gateway/registred/
      [org.nuxeo.connect.connector.AbstractConnectConnector] Cache empty or expired for hotfix_server-10.10. Sending request to https://nos-dev02-connect.beta.nuxeocloud.com/nuxeo/site/connect-gateway/registred/
      [org.nuxeo.connect.connector.AbstractConnectConnector] Cache empty or expired for addon_server-10.10. Sending request to https://nos-dev02-connect.beta.nuxeocloud.com/nuxeo/site/connect-gateway/registred/
      

      However, they are all the same. We don't know the exact url of each request. I suggest to log the exact URL instead of base URL.

      nuxeo-connect-client/src/main/java/org/nuxeo/connect/connector/AbstractConnectConnector.java
      254:        log.debug("Cache empty or expired for " + fileSuffix + ". Sending request to " + getBaseUrl());
      255-        // Fallback on the real source
      256-        String url = getBaseUrl() + GET_DOWNLOADS_SUFFIX + "/" + urlSuffix;
      257-        ConnectServerResponse response = execCall(url);
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mhuang Mincong Huang
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: