Skip to content

Commit

Permalink
configure logger in process.main
Browse files Browse the repository at this point in the history
  • Loading branch information
asjohnston-asf committed Oct 14, 2024
1 parent f3ae1df commit 3ee8f5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/)
and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.21.0]
### Added
* Logger is now configured in process.main() so paths to reference/secondary scenes will now be logged.
### Changed
* Fetch Sentinel-2 scenes from AWS S3 (if present); otherwise continue to fetch from Google Cloud Storage.
* Fetch Sentinel-2 scenes from AWS S3 (if present); otherwise continue to fetch from Google Cloud Storage.

## [0.20.0]
### Changed
Expand Down
3 changes: 3 additions & 0 deletions src/hyp3_autorift/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,9 @@ def main():
if len(args.granules) != 2:
parser.error('Must provide exactly two granules')

logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s',
datefmt='%m/%d/%Y %I:%M:%S %p', level=logging.INFO)

g1, g2 = sorted(args.granules, key=get_datetime)

product_file, browse_file, thumbnail_file = process(
Expand Down

0 comments on commit 3ee8f5f

Please sign in to comment.