Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 2, 2022
1 parent d153819 commit e705dc9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions satip/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,9 +652,9 @@ def save_native_to_zarr(

logger.debug(f"Processing {f}")
if "EPCT" in f:
logger.debug("Processing HRIT file")
logger.debug("fProcessing HRIT file {f}")
if "HRV" in f:
logger.debug("Processing HRV")
logger.debug(f"Processing HRV {f}")
logger.info(
f"Start HRV process Memory in use: "
f"{psutil.Process(os.getpid()).memory_info().rss / 1024 ** 2} MB"
Expand All @@ -665,7 +665,7 @@ def save_native_to_zarr(
f"{psutil.Process(os.getpid()).memory_info().rss / 1024 ** 2} MB"
)
else:
logger.debug("Processing non-HRV")
logger.debug(f"Processing non-HRV {f}")
logger.info(
f"STart non-HRV process Memory in use: "
f"{psutil.Process(os.getpid()).memory_info().rss / 1024 ** 2} MB"
Expand All @@ -677,7 +677,7 @@ def save_native_to_zarr(
)
else:
if "HRV" in bands:
logger.debug("Processing HRV")
logger.debug(f"Processing HRV {f}")
logger.info(
f"Start HRV process Memory in use:"
f" {psutil.Process(os.getpid()).memory_info().rss / 1024 ** 2} MB"
Expand All @@ -688,7 +688,7 @@ def save_native_to_zarr(
f"{psutil.Process(os.getpid()).memory_info().rss / 1024 ** 2} MB"
)

logger.debug("Processing non-HRV")
logger.debug(f"Processing non-HRV {f}")
logger.info(
f"STart non-HRV process Memory in use: "
f"{psutil.Process(os.getpid()).memory_info().rss / 1024 ** 2} MB"
Expand Down

0 comments on commit e705dc9

Please sign in to comment.