deepset-ai / deepset-cloud-sdk

A Python SDK to interact with deepset Cloud
Apache License 2.0
9 stars 2 forks source link

structlog overwrites logging #124

Open FHardow opened 1 year ago

FHardow commented 1 year ago

Describe the bug When developing a custom script that uses the SDK, one can't use the default logger through from logging import getLogger. Structlog most likely overwrites the default logger.

To Reproduce Steps to reproduce the behavior:

  1. install the SDK
  2. create a simple script that imports something from the SDK and getLogger from logging
  3. fetch a logger through getLogger - logger = getLogger()
  4. log something
  5. run the script.

Expected behavior All logs are shown and the users shouldn't be omitted.

Screenshots Missing log: image

Script definition: image

Checklist