Log trigger modifications

improve a couple things related to errors triggered by a log.error() call