Skip to content

Commit

Permalink
Revert "update logging kobo-to-121"
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsziere authored Mar 29, 2024
1 parent 05962dd commit ad89354
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,11 @@ async def kobo_to_121(request: Request, dependencies=Depends(required_headers_12
json=[payload]
)
target_response = response.content.decode("utf-8")

logger.info(target_response)

if response.status_code != 201:
logger.error("wrong request: ", response.status_code, target_response)
if "debug" in request.headers.items():
logger.info(payload)

logger.info(target_response)

return JSONResponse(status_code=response.status_code, content=target_response)

Expand Down Expand Up @@ -566,7 +565,6 @@ async def create_121_program_from_kobo(request: Request, dependencies=Depends(re
],
"enableMaxPayments": lookupdict['enableMaxPayments'].upper() == 'TRUE',
"allowEmptyPhoneNumber": False,
"budget": lookupdict['budget']
"enableScope": False
}

Expand Down

0 comments on commit ad89354

Please sign in to comment.