Skip to content

Commit

Permalink
logged IOException
Browse files Browse the repository at this point in the history
  • Loading branch information
serg3k authored and OwensCode committed Dec 31, 2015
1 parent 89c9a83 commit af8e4eb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/main/java/jenkins/plugins/slack/SlackNotifier.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
package jenkins.plugins.slack;

import hudson.*;
import hudson.model.*;
import hudson.EnvVars;
import hudson.Extension;
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.BuildListener;
import hudson.model.Descriptor;
import hudson.model.listeners.ItemListener;
import hudson.tasks.BuildStepDescriptor;
import hudson.tasks.BuildStepMonitor;
Expand All @@ -19,6 +24,7 @@

import java.io.IOException;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;

public class SlackNotifier extends Notifier {
Expand Down Expand Up @@ -500,7 +506,7 @@ public void onLoaded() {
p.save();
logger.info("Configuration updated successfully");
} catch (IOException e) {
e.printStackTrace();
logger.log(Level.SEVERE, e.getMessage(), e);
}
}
}
Expand Down

0 comments on commit af8e4eb

Please sign in to comment.