Skip to content

Commit

Permalink
Update docs/pages/sensitive-data.rst
Browse files Browse the repository at this point in the history
Co-Authored-By: Min RK <[email protected]>
  • Loading branch information
Zsailer and minrk authored Jan 30, 2020
1 parent ca5c28b commit ec8d5a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/pages/sensitive-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ Each event property can be given one of these four levels. This is reflected in
Jupyter Telemetry uses the ``level`` attribute to drop sensitive data when emitting events. By default, properties greater than "unclassifed" are dropped from recorded event data.

Each logging handler increase the level of sensitive data it emots. This can be configured by changing its ``.event_level`` attribute.
Each logging handler increase the level of sensitive data it emits. This can be configured by changing its ``.event_level`` attribute.

.. code-block:: python
import logging
handler = logging.FileHandler('events.log')
handler.event_level = 'secret'

0 comments on commit ec8d5a7

Please sign in to comment.