Button Script "Received event for missing view"

I have a button script that writes to the logger. When clicking it, it doesn’t write to the logs like expected but gives a warning message of “Received event for missing view” {pathToView}.

The view does exist and in the JSON file for it, it does contain the script that I wrote.

Does Anyone have any suggestions on what is going on?

Show us the script and we can better help you.

I removed everything and trying to run this

logger = system.util.getLogger("UpdatedOnLogger")
logger.info("Script Started")