Skip to content

Commit

Permalink
Fix violation by using logger instead of print.
Browse files Browse the repository at this point in the history
  • Loading branch information
YooSunYoung committed Jul 4, 2024
1 parent 6906b44 commit 728f06a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/background-ingestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Copyright (c) 2024 ScicatProject contributors (https://github.com/ScicatProject)
import json
import logging
import pathlib
from collections.abc import Generator
from contextlib import contextmanager

Expand Down Expand Up @@ -56,17 +57,16 @@ def main() -> None:
logger.info("Nexus file to be ingested : ")
logger.info(nexus_file)

done_writing_message_file = (
done_writing_message_file = pathlib.Path(
arg_namespace.arg_namespace.done_writing_message_file
)
logger.info("Done writing message file linked to nexus file : ")
logger.info(done_writing_message_file)

# open and read done writing message input file
with open(done_writing_message_file, 'r') as f:
done_writing_message = json.load(f)
done_writing_message = json.load(done_writing_message_file.open())
logger.info(done_writing_message)

print(done_writing_message)
# open nexus file
# nxs = snx.File(nexus_file)

Expand Down

0 comments on commit 728f06a

Please sign in to comment.