Skip to content

Commit

Permalink
[INLONG-11489][Audit] Use Throwable instead of Exception to capture J…
Browse files Browse the repository at this point in the history
…ava package conflicts
  • Loading branch information
doleyzi committed Nov 12, 2024
1 parent eb55831 commit 5f8f49e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ public static String httpGet(String component, String url, String secretId, Stri
return responseStr;
}
}
} catch (Exception e) {
LOGGER.error("Send get request has exception", e);
} catch (Throwable e) {
LOGGER.error("Http request url = {}, secretId = {}, secretKey = {}, component = {} has exception!", url,
secretId, secretKey, component, e);
}
return null;
}
Expand Down

0 comments on commit 5f8f49e

Please sign in to comment.