print exceptions to logs