Skip to content

Commit

Permalink
Add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Aug 5, 2023
1 parent de158b3 commit b20c51d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions diskimageprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,17 @@ def create_aspace_excel_sheet(args, sips, volumes, logger):
logger.error(f"Error setting permissions: {err}")

workbook = xlsxwriter.Workbook(xlsx_path, {"strings_to_numbers": True})

# TODO: Remove when no longer necessary
worksheets = workbook.worksheets()
logger.info("Worksheets: {}".format(",".join(worksheets)))

worksheet = workbook.get_worksheet_by_name("Data")

# TODO: Remove when no longer necessary
if worksheet is None:
logger.error("FOR TESTING: worksheet is none")

# TODO: Deduplicate with create_speadsheet
# Maybe create separate method that creates dict with info, and handle
# opening/writing csv or xlsx separately
Expand Down

0 comments on commit b20c51d

Please sign in to comment.