Skip to content

Commit

Permalink
Add debug print enable guide
Browse files Browse the repository at this point in the history
  • Loading branch information
1ukastesar authored and peterdragun committed May 1, 2023
1 parent fd6c7d8 commit 0a566c7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions repository/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,11 @@ from repository.database.meme_repost import MemeRepost # noqa: F401
> That way, the module gets imported on startup and creates the table automatically.
> The `noqa` formula is for `flake8` to ignore seemingly unused import.
## Enable debug prints

Add `echo=True` to `repository/database/__init__.py`:
```python
12 self.db = create_engine(self.config.db_string, echo=True)
^
```

0 comments on commit 0a566c7

Please sign in to comment.