updated log levels when logging exceptions