fixes #6403 logging/trigger script cleanup and change how we set logging boolean