LOG.info("Sending notification for event {} as service user {} #messages {} ",event.getOperation(),realUser.getShortUserName(),event.getMessages().size());
realUser.doAs(privilegedNotify);
}else{
LOG.info("Sending notification for event {} as current user {} #messages {} ",event.getOperation(),event.getUgi().getShortUserName(),event.getMessages().size());
event.getUgi().doAs(privilegedNotify);
}
};
}catch(Throwablee){
LOG.error("Error during notify {} ",event.getOperation(),e);