Skip to content

Commit 9d3cfdb

Browse files
authored
Merge pull request #1066 from ZakarFin/ignore-proxy-as-common-err
Treat proxy error as common error
2 parents c72091c + 2bc95fc commit 9d3cfdb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

control-base/src/main/java/fi/nls/oskari/control/layer/GetLayerTileHandler.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ public void handleAction(final ActionParameters params)
154154
// just throw it as is if we already handled it
155155
throw e;
156156
} catch (Exception e) {
157-
LOG.info("Url in proxy error was:", url);
158-
throw new ActionParamsException("Couldn't proxy request to actual service", e.getMessage(), e);
157+
LOG.debug("Url in proxy error was:", url);
158+
throw new ActionCommonException("Couldn't proxy request to actual service: " + e.getMessage(), e);
159159
} finally {
160-
if(actionTimer != null) {
160+
if (actionTimer != null) {
161161
actionTimer.stop();
162162
}
163-
if(con != null) {
163+
if (con != null) {
164164
con.disconnect();
165165
}
166166
}

0 commit comments

Comments
 (0)