diff --git a/src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/JobCollector.java b/src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/JobCollector.java index c7cbefd..56e3056 100644 --- a/src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/JobCollector.java +++ b/src/main/java/org/jenkinsci/plugins/pluginusage/analyzer/JobCollector.java @@ -46,7 +46,7 @@ public Map getJobsPerPlugin() } } } catch(Exception e){ - LOGGER.warning("Exception catched: " + e ); + LOGGER.warning("Exception caught: " + e ); } } @@ -66,7 +66,9 @@ public Map getJobsPerPlugin() addItem(item, plugin); } } catch(Exception e){ - LOGGER.warning("Exception catched: " + e ); + LOGGER.warning("Exception caught in job " + item.getFullName() + ": " + e ); + } catch (Throwable e){ + LOGGER.severe("Exception caught in job " + item.getFullName() + ": " + e ); } } }