Skip to content

Commit 414d38d

Browse files
committed
SD image requests - adding logging for testing 10
1 parent 4df3ae0 commit 414d38d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

java/sage/MetaImage.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3273,6 +3273,17 @@ private boolean loadCacheFile()
32733273
if (httpConn.getContentType()=="application/json"){
32743274
//SD returned an error which is within the returned json
32753275
//TODO: remove after testing
3276+
if (Sage.DBG) System.out.println("MetaImage.loadCacheFile: Prior to ErrorHandling");
3277+
SDUtils.handleSDJsonErrorFromHttpResponse(httpConn);
3278+
if (Sage.DBG) System.out.println("MetaImage.loadCacheFile: After ErrorHandling");
3279+
is.close();
3280+
if (Sage.DBG) System.out.println("MetaImage.loadCacheFile: is closed");
3281+
is = null;
3282+
if (Sage.DBG) System.out.println("MetaImage.loadCacheFile: is nul now");
3283+
break;
3284+
}else{
3285+
if (Sage.DBG) System.out.println("MetaImage.loadCacheFile: ELSE: content type:" + httpConn.getContentType());
3286+
32763287
if (Sage.DBG) System.out.println("MetaImage.loadCacheFile: Prior to ErrorHandling");
32773288
SDUtils.handleSDJsonErrorFromHttpResponse(httpConn);
32783289
if (Sage.DBG) System.out.println("MetaImage.loadCacheFile: After ErrorHandling");

0 commit comments

Comments
 (0)