Source:
<code>public void onLoaded() { logger.info("Starting Settings Migration Process"); for (AbstractProject<?, ?> p : Jenkins.getInstance().getAllItems(AbstractProject.class)) { logger.info("processing Job: " + p.getName()); final SlackJobProperty slackJobProperty = p.getProperty(SlackJobProperty.class); if(slackJobProperty == null) { logger.info("Configuration is already uptodate, exiting migration"); return; } SlackNotifier slackNotifier = p.getPublishersList().get(SlackNotifier.class); slackNotifier.teamDomain = slackJobProperty.getTeamDomain(); slackNotifier.authToken = slackJobProperty.getToken(); slackNotifier.room = slackJobProperty.getRoom(); slackNotifier.startNotification = slackJobProperty.getStartNotification(); slackNotifier.notifyAborted = slackJobProperty.getNotifyAborted(); slackNotifier.notifyFailure = slackJobProperty.getNotifyFailure(); slackNotifier.notifyNotBuilt = slackJobProperty.getNotifyNotBuilt(); slackNotifier.notifySuccess = slackJobProperty.getNotifySuccess(); slackNotifier.notifyUnstable = slackJobProperty.getNotifyUnstable(); slackNotifier.notifyBackToNormal = slackJobProperty.getNotifyBackToNormal(); slackNotifier.notifyRepeatedFailure = slackJobProperty.getNotifyRepeatedFailure(); slackNotifier.includeTestSummary = slackJobProperty.includeTestSummary(); slackNotifier.commitInfoChoice = slackJobProperty.getShowCommitList() ? CommitInfoChoice.AUTHORS_AND_TITLES : CommitInfoChoice.NONE; slackNotifier.includeCustomMessage = slackJobProperty.includeCustomMessage(); slackNotifier.customMessage = slackJobProperty.getCustomMessage(); try { p.removeProperty(SlackJobProperty.class); p.save(); logger.info("Configuration updated successfully"); } catch (IOException e) { <START> e.printStackTrace(); <END> } } }</code><technical_language>this log exception instead</technical_language>

Target:
public void onLoaded() { logger.info("Starting Settings Migration Process"); for (AbstractProject<?, ?> p : Jenkins.getInstance().getAllItems(AbstractProject.class)) { logger.info("processing Job: " + p.getName()); final SlackJobProperty slackJobProperty = p.getProperty(SlackJobProperty.class); if(slackJobProperty == null) { logger.info("Configuration is already uptodate, exiting migration"); return; } SlackNotifier slackNotifier = p.getPublishersList().get(SlackNotifier.class); slackNotifier.teamDomain = slackJobProperty.getTeamDomain(); slackNotifier.authToken = slackJobProperty.getToken(); slackNotifier.room = slackJobProperty.getRoom(); slackNotifier.startNotification = slackJobProperty.getStartNotification(); slackNotifier.notifyAborted = slackJobProperty.getNotifyAborted(); slackNotifier.notifyFailure = slackJobProperty.getNotifyFailure(); slackNotifier.notifyNotBuilt = slackJobProperty.getNotifyNotBuilt(); slackNotifier.notifySuccess = slackJobProperty.getNotifySuccess(); slackNotifier.notifyUnstable = slackJobProperty.getNotifyUnstable(); slackNotifier.notifyBackToNormal = slackJobProperty.getNotifyBackToNormal(); slackNotifier.notifyRepeatedFailure = slackJobProperty.getNotifyRepeatedFailure(); slackNotifier.includeTestSummary = slackJobProperty.includeTestSummary(); slackNotifier.commitInfoChoice = slackJobProperty.getShowCommitList() ? CommitInfoChoice.AUTHORS_AND_TITLES : CommitInfoChoice.NONE; slackNotifier.includeCustomMessage = slackJobProperty.includeCustomMessage(); slackNotifier.customMessage = slackJobProperty.getCustomMessage(); try { p.removeProperty(SlackJobProperty.class); p.save(); logger.info("Configuration updated successfully"); } catch (IOException e) { logger.log(Level.SEVERE, e.getMessage(), e); } } }