improve loggly messages submitted via /exception API

also makes "loggingInTestMode" logic more consistent