"log.log_msg" triggers a lua function error, because that function does not exist. Additionally add add set_log_level / restore_log_level to improve compatibility with other files.
Scripts in this folder are meant to have an "owner" who maintains them.