Skip to content

Commit 38107c7

Browse files
committed
Fixed a wrong import path in the documentation. Fixes pallets#102
1 parent c41a1cd commit 38107c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/errorhandling.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ There are a couple of handlers provided by the logging system out of the
8989
box but not all of them are useful for basic error logging. The most
9090
interesting are probably the following:
9191

92-
- :class:`~logging.handlers.FileHandler` - logs messages to a file on the
92+
- :class:`~logging.FileHandler` - logs messages to a file on the
9393
filesystem.
9494
- :class:`~logging.handlers.RotatingFileHandler` - logs messages to a file
9595
on the filesystem and will rotate after a certain number of messages.
@@ -105,7 +105,7 @@ above, just make sure to use a lower setting (I would recommend
105105

106106
if not app.debug:
107107
import logging
108-
from logging.handlers import TheHandlerYouWant
108+
from themodule import TheHandler YouWant
109109
file_handler = TheHandlerYouWant(...)
110110
file_handler.setLevel(logging.WARNING)
111111
app.logger.addHandler(file_handler)

0 commit comments

Comments
 (0)