Skip to content

Instantly share code, notes, and snippets.

Working from home

Benoît Mariaux benoitMariaux

Working from home
  • Saint-Gobain
  • Paris - France
View GitHub Profile
gene1wood /
Last active Feb 18, 2020
A python AWS Lambda function which logs the contents of the event and context variables passed into the function.
from __future__ import unicode_literals
import logging
import json
logger = logging.getLogger(__name__)
class PythonObjectEncoder(json.JSONEncoder):
"""Custom JSON Encoder that allows encoding of un-serializable objects
You can’t perform that action at this time.