提交 59d491f9 编写于 作者: J Jesse Glick

Throwable.printStackTrace() to stderr is gratuitous when we are sending the exception to Logger.

上级 2d8bb7c8
......@@ -214,8 +214,7 @@ public abstract class Trigger<J extends Item> implements Describable<Trigger<?>>
checkTriggers(cal);
} catch (Throwable e) {
LOGGER.log(Level.WARNING,"Cron thread throw an exception",e);
// bug in the code. Don't let the thread die.
e.printStackTrace();
// SafeTimerTask.run would also catch this, but be sure to increment cal too.
}
cal.add(Calendar.MINUTE,1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册