Skip to content

Commit

Permalink
Bug fix in formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
uenz committed Nov 3, 2018
1 parent 492eea7 commit c66f1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2014-07-05-logging-in-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ In the code right after `logging` is configured ([see](#configuring-your-loggers

{% highlight python linenos %}
for h in logging.root.handlers:
h.setFormatter(FilterFormatter(h.formatter))
h.setFormatter(RedactingFormatter(h.formatter, patterns=['hide me','me also']))
{% endhighlight %}


Expand Down

0 comments on commit c66f1c2

Please sign in to comment.