Skip to content

Commit

Permalink
Add some logs (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
omesser authored Feb 12, 2021
1 parent 13319ae commit 15f5f7f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions core/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,23 @@ def __init__(
self._extractor = extractor.Extractor(self._logger, archive_path)
self._parallel = parallel

self._logger.debug('Initialized', parallel=self._parallel)

def process(self):
"""
Processing given archive and pushes the images it contains to the registry
"""
start_time = time.time()
self._logger.info(
'Processing archive', archive_path=self._extractor.archive_path
)
results = []
with tempfile.TemporaryDirectory() as tmp_dir_name:

self._logger.info(
'Processing archive',
archive_path=self._extractor.archive_path,
parallel=self._parallel,
tmp_dir_name=tmp_dir_name,
)

# extract the whole thing
self._extractor.extract_all(tmp_dir_name)

Expand Down

0 comments on commit 15f5f7f

Please sign in to comment.