Add a check for the log