Update documentation and correct incorrect logging
Update documentation and correct incorrect logging

The function can be triggered when the page has not been opened, and the logging is incorrect

jiahaog/Revenant