log.setDate(new Date());
functionLogDao.makePersistent(log);
}
public void logFunction(String function) {
FunctionLog log = new FunctionLog();
log.setFunction(function);
if (getUser() instanceof ZeroUser) {
ZeroUser user = (ZeroUser) getUser();
log.setUser((ZeroUser) user);
log.setDate(new Date());
functionLogDao.makePersistent(log);
}
}