Skip to content

Commit de46235

Browse files
committed
Adding an exception log.
1 parent 5f9ac65 commit de46235

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/jenkinsci/plugins/workflow/log/LogStorage.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
import java.io.FileOutputStream;
3636
import java.io.IOException;
3737
import java.io.OutputStream;
38+
import java.util.logging.Level;
39+
import java.util.logging.Logger;
3840
import javax.annotation.Nonnull;
3941
import org.jenkinsci.plugins.workflow.actions.LogAction;
4042
import org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner;
@@ -141,6 +143,7 @@ public interface LogStorage {
141143
}
142144
return f;
143145
} catch (Exception x) {
146+
Logger.getLogger(LogStorage.class.getName()).log(Level.WARNING, null, x);
144147
if (build instanceof Run) {
145148
return new File(((Run) build).getRootDir(), "log");
146149
} else {

0 commit comments

Comments
 (0)