Skip to content

Commit

Permalink
logger fix in init file
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyhq committed Jan 12, 2024
1 parent 057669f commit 5a3413f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/hyp3_isce2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
import os
from importlib.metadata import version
from pathlib import Path
import logging

# Ensures all ISCE2 paths and environment variables are set when using this module, see:
# https://github.com/isce-framework/isce2/blob/main/__init__.py#L41-L50
import isce # noqa: F401
# https://github.com/isce-framework/isce2/issues/258
root_logger = logging.getLogger()
root_logger.setLevel('WARNING')
# ISCE2 also needs its applications to be on the system path, even though they say it's only "for convenience", see:
# https://github.com/isce-framework/isce2#setup-your-environment
ISCE_APPLICATIONS = str(Path(os.environ['ISCE_HOME']) / 'applications')
Expand Down
3 changes: 0 additions & 3 deletions src/hyp3_isce2/insar_tops_burst.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
from typing import Optional

import isce
# https://github.com/isce-framework/isce2/issues/258
root_logger = logging.getLogger()
root_logger.setLevel('WARNING')
from hyp3lib.aws import upload_file_to_s3
from hyp3lib.get_orb import downloadSentinelOrbitFile
from hyp3lib.image import create_thumbnail
Expand Down

0 comments on commit 5a3413f

Please sign in to comment.