archivematica / Issues

Issues repository for the Archivematica project
GNU Affero General Public License v3.0
16 stars 1 forks source link

Problem: Output of DIP uploads to AtoM always shows ERROR messages #1268

Open replaceafill opened 4 years ago

replaceafill commented 4 years ago

Expected behaviour

The output of the Upload DIP job signals success and error states clearly.

Current behaviour

Even if the DIP uploads successfully to AtoM all the logged lines in the job output start with ERROR:

Screenshot_2020-07-16 Archivematica Dashboard -

The problem seems to be that the upload_qubit client script is using a single function to do all the logging and calls logger.error every time.

Steps to reproduce

  1. Upload a DIP to AtoM
  2. In AtoM, verify that the DIP has uploaded successfully
  3. In AM, check the output of the Upload DIP job and notice all the lines in the output start with ERROR

Your environment (version of Archivematica, operating system, other relevant details)

docker compose https://github.com/artefactual-labs/am/commit/6031e67f8ffad3fc353198bb2ec527a13277426c


For Artefactual use:

Before you close this issue, you must check off the following:

ross-spencer commented 4 years ago

Related to https://github.com/archivematica/Issues/issues/26

ross-spencer commented 4 years ago

Also good use of good first issue @replaceafill. Nice.