log the exception if download of elevation file failed#283
Open
brwe wants to merge 1 commit intosenbox-org:masterfrom
Open
log the exception if download of elevation file failed#283brwe wants to merge 1 commit intosenbox-org:masterfrom
brwe wants to merge 1 commit intosenbox-org:masterfrom
Conversation
brwe
commented
May 19, 2021
| try { | ||
| return getRemoteHttpFile(remoteHTTP1); | ||
| } catch (Exception e2) { | ||
| logger.log(Level.SEVERE, "Unable to download " + localZipFile + " from " + remoteHTTP1, e2); |
Author
There was a problem hiding this comment.
Actually, here we should probably just throw instead of continue. If we don't then for terrain correction this is called for every single pixel and then does not even stop! Try this:
- change url for remoteHTTP1 to something ridiculous
- run the test https://github.com/senbox-org/snap-engine/blob/master/snap-dem/src/test/java/org/esa/snap/dem/dataio/TestElevations.java#L54
-> this will produce some garbage without any warning.
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
see https://forum.step.esa.int/t/403-for-skywatch-auxdata-bucket/30285/19