Skip to content

Commit

Permalink
Merge pull request #72 from carlosm27/master
Browse files Browse the repository at this point in the history
Fix: Typo in docs/handbooks/logging.srt
  • Loading branch information
Miksus authored Aug 10, 2022
2 parents 58bf262 + aa55411 commit 8684375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/handbooks/logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Here is an example to log to a CSV file:
# Adding the repo to the logger
logger = logging.getLogger('rocketry.task')
handler = RepoHandler(repo=repo)
logging.addHander(handler)
logger.addHandler(handler)
Another common pattern is to log the records to a
SQL database. This can be done with SQLAlchemy:
Expand All @@ -112,7 +112,7 @@ SQL database. This can be done with SQLAlchemy:
repo = SQLRepo(engine=engine, table="tasks", if_missing="create", model=MinimalRecord, id_field="created")
handler = RepoHandler(repo=repo)
logging.addHander(handler)
logging.addHandler(handler)
Read more about repositories from `Red Bird's documentation <https://red-bird.readthedocs.io/>`_.

Expand Down

0 comments on commit 8684375

Please sign in to comment.