File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Notes/08_Testing_debugging Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ You will notice that you don't see the output from the `log.debug()`
269
269
operation. Type this to change the level.
270
270
271
271
```
272
- >>> logging.getLogger('fileparse').level = logging.DEBUG
272
+ >>> logging.getLogger('fileparse').setLevel( logging.DEBUG)
273
273
>>> a = report.read_portfolio('Data/missing.csv')
274
274
WARNING:fileparse:Row 4: Bad row: ['MSFT', '', '51.23']
275
275
DEBUG:fileparse:Row 4: Reason: invalid literal for int() with base 10: ''
@@ -281,7 +281,7 @@ DEBUG:fileparse:Row 7: Reason: invalid literal for int() with base 10: ''
281
281
Turn off all, but the most critical logging messages:
282
282
283
283
```
284
- >>> logging.getLogger('fileparse').level= logging.CRITICAL
284
+ >>> logging.getLogger('fileparse').setLevel( logging.CRITICAL)
285
285
>>> a = report.read_portfolio('Data/missing.csv')
286
286
>>>
287
287
```
You can’t perform that action at this time.
0 commit comments