From aa554116d4845e7033fb98a15c0debc43685e414 Mon Sep 17 00:00:00 2001 From: Carlos Armando Marcano Vargas <70811425+carlosm27@users.noreply.github.com> Date: Wed, 10 Aug 2022 07:50:52 -0400 Subject: [PATCH] Fix: Typo in docs/handbooks/logging.srt --- docs/handbooks/logging.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/handbooks/logging.rst b/docs/handbooks/logging.rst index 81a69615..421eaf23 100644 --- a/docs/handbooks/logging.rst +++ b/docs/handbooks/logging.rst @@ -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.addHandler(handler) + logger.addHandler(handler) Another common pattern is to log the records to a SQL database. This can be done with SQLAlchemy: