log sleep changed to lambda