@@ -75,7 +75,7 @@ public Resource download() {
7575 .map (Optional ::get )
7676 .findFirst ()
7777 .orElseGet (() -> {
78- LOG .error ("could not download resource {} from any of theses urls {} {}" , resource , downloadUrls , exceptionMessage ());
78+ LOG .error ("Could not download resource {} from any of theses urls {} {}" , resource , downloadUrls , exceptionMessage ());
7979 resource .setStatus (ERROR );
8080 checkForProxyError ();
8181 return resource ;
@@ -107,6 +107,7 @@ private void checkForProxyError() {
107107 for (final Exception excp : downLoadExceptions ) {
108108 final Throwable cause = excp .getCause ();
109109 if (cause instanceof IOException && !(cause instanceof FileNotFoundException ) && cause .getMessage ().toLowerCase ().contains ("proxy" )) {
110+ LOG .debug ("checkForProxyError : show Exception Dialog for exception : {} cause : {}" , excp .getMessage (), cause .getMessage ());
110111 BasicExceptionDialog .willBeShown ();
111112 SwingUtils .invokeLater (() -> {
112113 BasicExceptionDialog .show ((IOException ) cause );
@@ -123,6 +124,7 @@ private CompletableFuture<Resource> downloadFrom(final URL url) {
123124 try {
124125 result .complete (tryDownloading (url ));
125126 } catch (Exception | Error e ) {
127+ LOG .debug ("downloadFrom exception: {}" , e .getMessage ());
126128 result .completeExceptionally (e );
127129 }
128130 });
@@ -136,6 +138,7 @@ private Resource tryDownloading(final URL downloadFrom) throws IOException {
136138
137139 if (downloadDetails .contentType != null && downloadDetails .contentType .startsWith (ERROR_MIME_TYPE )) {
138140 final String serverResponse = StreamUtils .readStreamAsString (downloadDetails .inputStream );
141+ LOG .debug ("Server Error for {}" , resource );
139142 throw new RuntimeException ("Server error: " + serverResponse );
140143 }
141144
0 commit comments