Skip to content

Commit 60c6f0a

Browse files
authored
Remove unused json import from logging examples
The logging examples import the json library but don't use it. Should be removed
1 parent 15bad94 commit 60c6f0a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc_source/python-logging.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ To output logs from your function code, you can use [the `print` method](https:/
77
**Example lambda\_function\.py**
88

99
```
10-
import json
1110
import os
1211
1312
def lambda_handler(event, context):
@@ -154,7 +153,6 @@ Log groups aren't deleted automatically when you delete a function\. To avoid st
154153
For more detailed logs, use the [logging library](https://docs.python.org/3/library/logging.html)\.
155154

156155
```
157-
import json
158156
import os
159157
import logging
160158
logger = logging.getLogger()
@@ -182,4 +180,4 @@ START RequestId: 1c8df7d3-xmpl-46da-9778-518e6eca8125 Version: $LATEST
182180
END RequestId: 1c8df7d3-xmpl-46da-9778-518e6eca8125
183181
REPORT RequestId: 1c8df7d3-xmpl-46da-9778-518e6eca8125 Duration: 2.75 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 56 MB Init Duration: 113.51 ms
184182
XRAY TraceId: 1-5e34a66a-474xmpl7c2534a87870b4370 SegmentId: 073cxmpl3e442861 Sampled: true
185-
```
183+
```

0 commit comments

Comments
 (0)