A system, method and computer-readable medium for optimizing recovery
logging is provided. A calling component stably logs a message from a
called component only when sending a second message or sending a second
message after a log force that writes the return message from the first
message to the stable log. The called component stably logs its return
message before the return message is sent.