efbb760082d6457db0ec350e506.../README.md
2025-08-24 00:51:58 +00:00

13 lines
356 B
Markdown

ort logging
# Configure the logginglogging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
def main(request):
logging.info(f"Function called with request: {request}")
data = request.get_json(force=True)
logging.info(f"Received data: {data}")
return {"result": data.get("a", 0)+data.get("b", 0)}# python hello-world