if (cause == null)
return true;
// fall through
case PERMANENT:
LOG.info("Supervisor trying to restart child {}. (cause: {})", child, cause);
final Actor actor = child.actor;
shutdownChild(child, true);
child.restartHistory.addRestart(now);
final int numRestarts = child.restartHistory.numRestarts(now - child.info.unit.toMillis(child.info.duration));
if (LOG.isDebugEnabled())
LOG.debug("Child {} has been restarted {} times in the last {} {}s", child, numRestarts, child.info.duration, child.info.unit);