Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Nov 27, 2024
1 parent c1f3f46 commit 9eacf39
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ async def log_generator(self) -> AsyncIterable[str]:
done = await self._project_done()

except (BaseBackEndError, LogStreamerRegistionConflictError) as exc:
_logger.info("%s: %s", exc.code, f"{exc}")
error_msg = f"{exc}"

yield ErrorGet(errors=[f"{exc}"]).model_dump_json() + _NEW_LINE
_logger.info("%s: %s", exc.code, error_msg)
yield ErrorGet(errors=[error_msg]).model_dump_json() + _NEW_LINE

except Exception as exc: # pylint: disable=W0718
error_code = create_error_code(exc)
Expand Down

0 comments on commit 9eacf39

Please sign in to comment.