Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-375

Better format nosetests log capture statements

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0626
    • Fix Version/s: 2.0.818
    • Component/s: Tests
    • Sprint:
      Drive V2 EA feedback
    • Story Points:
      1

      Description

      Currently, when a Jenkins FT-nuxe-drive-master-* job fails, we don't have enough information in the log capture, like timestap and thread id :

      13:02:42 [INFO] [exec] nxdrive.client.base_automation_client: TRACE: Calling http://localhost:8080/nuxeo/site/automation/NuxeoDrive.GetChangeSummary with headers {'X-Authentication-Token': '008cfa05-ddf1-4729-9ce9-fea869b6b55a', 'X-NXproperties': '*', 'X-NXDocumentProperties': '*', 'X-Device-Id': '1fc32a0c256011e591a2002500d3a152', 'Accept': 'application/json+nxentity, */*', 'User-Agent': 'Nuxeo Drive/2.0-dev', 'X-User-Id': u'nuxeoDriveTestUser_user_1', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json+nxrequest', 'X-Application-Name': 'Nuxeo Drive', 'X-Client-Version': '2.0-dev'}, cookies [] and JSON payload '{"params": {"lowerBound": 8234, "lastSyncActiveRootDefinitions": "default:da750e7d-12d2-4134-993a-84af05c22304"}}'
      13:02:42 [INFO] [exec] nxdrive.client.base_automation_client: TRACE: Response for 'http://localhost:8080/nuxeo/site/automation/NuxeoDrive.GetChangeSummary' with cookies []: '{"upperBound":8236,"fileSystemChanges":[],"syncDate":1436353073000,"activeSynchronizationRootDefinitions":"default:da750e7d-12d2-4134-993a-84af05c22304","hasTooManyChanges":false
      

      Let's use the same formatting as in the Drive logging config:

      2015-07-08 15:45:48,442 28840 140540399847168 DEBUG    nxdrive.engine.dao.sqlite Create DAO on /tmp/tmpupJt5G-nxdrive-tests-user-1/nuxeo-drive-conf/manager.db
      2015-07-08 15:45:48,443 28840 140540399847168 DEBUG    nxdrive.engine.dao.sqlite Create main connexion on /tmp/tmpupJt5G-nxdrive-tests-user-1/nuxeo-drive-conf/manager.db (dir exists: 1 / file exists: 0)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: