Added grace period check to logging process.