Skip to content

Commit

Permalink
added more debug log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Jun 20, 2024
1 parent aa0aecd commit d2ab8e5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions xnat_ingest/cli/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,14 +433,23 @@ def iter_staged_sessions():
SessionClass,
ScanClass,
)
logger.debug("Creating scan %s in %s", scan_id, session_path)
xscan = ScanClass(id=scan_id, type=scan_type, parent=xsession)
logger.debug(
"Creating resource %s in %s in %s",
resource_name,
scan_id,
session_path,
)
xresource = xscan.create_resource(resource_name)
if isinstance(scan, File):
for fspath in scan.fspaths:
xresource.upload(str(fspath), fspath.name)
else:
xresource.upload_dir(scan.parent)
logger.debug("retrieving checksums for %s", xresource)
remote_checksums = get_checksums(xresource)
logger.debug("calculating checksums for %s", xresource)
calc_checksums = calculate_checksums(scan)
if remote_checksums != calc_checksums:
mismatching = [
Expand Down

0 comments on commit d2ab8e5

Please sign in to comment.