Skip to content

Commit 8c655cd

Browse files
committed
Update readme
1 parent ff5410e commit 8c655cd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,12 @@ except RuntimeError as exc:
106106
stackprinter.show(exc, suppressed_vars=[r".*secret.*"],
107107
suppressed_paths=[r"lib/python.*/site-packages/boringstuff"],
108108
truncate_vals=9001,
109-
style="darkbg2",
110-
)
109+
style="darkbg2")
111110
```
112111

113112
### Integration with the standard `logging` module
114113

115-
Through a bit of extra plumbing you can log errors with normal `logging` methods, without having to import `stackprinter` at the site of the logging call. So you can continue to have nice and simple error handlers like this...
114+
With a bit of extra plumbing you can log errors like this via the normal `logging` methods, without having to import `stackprinter` at the site of the logging call. So you can continue to write nice and simple error handlers like this...
116115

117116
```python
118117
logger = logging.getLogger()
@@ -144,7 +143,7 @@ except:
144143
┆ TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
145144
```
146145

147-
You can get this by adding a [custom formatter](https://docs.python.org/3/howto/logging-cookbook.html#customized-exception-formatting) to the logger once before using it.
146+
You can get this by adding a [custom formatter](https://docs.python.org/3/howto/logging-cookbook.html#customized-exception-formatting) to the logger before using it:
148147

149148
```python
150149
# Set up logging

0 commit comments

Comments
 (0)