Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Observe Pyth on-chain price feeds and run sanity checks on the data.
Container images are available at https://github.com/pyth-network/pyth-observer/pkgs/container/pyth-observer

To run Observer locally, you will need:
- Python 3.10 ([pyenv](https://github.com/pyenv/pyenv) is a nice way to manage Python installs, and once installed will automatically set the version to 3.10 for this project dir via the `.python-version` file).
- [Poetry](https://python-poetry.org), which handles package and virtualenv management.
- Python 3.11 ([pyenv](https://github.com/pyenv/pyenv) is a nice way to manage Python installs, and once installed will automatically set the version to 3.10 for this project dir via the `.python-version` file).
- [Poetry] v2.1.4 (https://python-poetry.org), which handles package and virtualenv management.

Install dependencies and run the service:
```sh
Expand Down
6 changes: 5 additions & 1 deletion pyth_observer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,11 @@ async def run(self):
await self.dispatch.run(states)

except Exception as e:
logger.error(f"Error in run loop: {e}")
logger.exception(f"Error in run loop: {repr(e)}")
if "product" in locals():
logger.error(
f"Product attrs during error: {product.attrs}" # pyright: ignore[reportPossiblyUnboundVariable]
)
health_server.observer_ready = False
metrics.loop_errors_total.labels(error_type=type(e).__name__).inc()
await asyncio.sleep(5)
Expand Down